[fpc-pascal]CRT unit

Andreas K. Foerster AKFoerster at nikocity.de
Sun Aug 5 08:20:31 CEST 2001


On Fri, Aug 03, 2001 at 07:58:37PM +0200, Thomas Schatzl wrote:

> WindMinY and WindMaxY. They're exported to the interface section of the unit
> atm.

ATM?

> The WindMax variable is there for .... umm .... historical reasons.
> (compatibility).

I try to write progs, which are portable between Linux and Windows. 
Under Linux the screensize isn't always the same.

> > Oh, I have a slow machine and it is definitly slow under Windows. Not
> > only in a window, but also in fullscreen-mode!
> 
> Yes, it might be (also gfx driver dependant). Otoh I can't feel the
> difference on a PII/366 notebook with crappy gfx card and W2k for all
> applications so far. [If they're not written like benchmarks, e.g. redrawing
> the whole screen because one character changed]

I meant, it's much slower under Windows compared to Linux. 
But okay, you are right, that's not that important.

[help for porting from TP to FPC]
> I do agree with you here. Though I can't find the 'many empty functions' in
> the current (1.1) crt (exactly two: nosound() and textmode() where the first

Okay, I also looked into some other source codes.
The most extreme is - of course - the DOS unit for Linux.
The suggestion was just meant as an additional aid.

> Porting from TP to FPC / GO32V2 is usually done with recompiling
> (considering it's pascal code) - I don't think that porting to another OS
> from TP is possible as easily at all.

Oh, I was surprised how easy it is to port console progs to Linux.

> The TP RTL is too much DOS dependant for this task imo. 

I don't think so. Except of the DOS unit and perhaps the Graph unit.

-- 
Tschuess
	Andreas




More information about the fpc-pascal mailing list