[fpc-pascal]Crt / nCrt unit for FreeBSD
Stephen Hurd
shurd at sk.sympatico.ca
Thu Aug 30 19:21:28 CEST 2001
The nCrt unit for FreeBSD seems to be broken... but not as bad as the Crt
unit...
The Crt unit seems to hang ANY program that uses it. It looks as theough
the key buffer is never read... when you break out, all the keypresses are
still in the buffer. If you Use nCrt, you get the following problems:
keypressed echos the key
writeing a #13 followed by a #10 deletes the current line before advancing
to the next...
A simple test case to show it off is:
program test;
uses ncrt;
var key: char;
begin
ClrScr;
write('This is a test line.');
write(#13);
write(#10);
repeat begin
if keypressed then begin
key:=readkey;
write(key);
end;
end;
until key='q';
end.
More information about the fpc-pascal
mailing list