[fpc-pascal]black on white with Win32

Andreas K. Foerster AKFoerster at nikocity.de
Wed Mar 7 20:55:54 CET 2001


Hello,

I found a trick to get black on white in Win32 - but only in Win32:

uses
CRT;                                                                                                                                                       
begin
{$IFDEF WIN32}
TextAttr:=$F0;
{$ENDIF}
ClrScr;
WriteLn('black on white?');
ReadLn;
end.

Attention:
If you would use it under Dos or Linux without the conditional, you
would get a GRAY background and BLINKING text in textmode!
With a WIN32-binary it doesn't blink, even when you switch to textmode.
(I don't know why)




More information about the fpc-pascal mailing list