Category : Files from Magazines
Archive   : APR91.ZIP
Filename : 2N04061A

 
Output of file : 2N04061A contained in archive : APR91.ZIP
{ Demonstrates the use of function RdKey which is
assumed to be in a CrtExt.tpu which contains
your "extenders" for TP's Crt unit.
}
program DemoRdKey;

uses
crt, crtext;

var
QuickCh : char;
FullCh : keyrec;

begin
clrscr;
repeat
write('Press a key: ');
QuickCh := RdKey(FullCh);
writeln;
writeln;
writeln('Quickch (ReadKey''s ch) is ''',
QuickCh,''' with ascii ',ord(QuickCh));
writeln;
if ord(QuickCh) <> 0 then
begin
writeln('FullCh.ch is ''', Fullch.ch,'''',
' with ascii ',ord(FullCh.ch));
writeln('FullCh.sc is ', FullCh.sc,' (scan code)');
end
else
begin
writeln('FullCh.ch is ''', Fullch.ch,'''',
' with moved scan ',ord(FullCh.ch));
writeln('FullCh.sc is ', FullCh.sc,' (sp k flag)');
end;
writeln;
writeln;
until QuickCh = 'q'
end.



  3 Responses to “Category : Files from Magazines
Archive   : APR91.ZIP
Filename : 2N04061A

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/