home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
pcmag
/
vol7n14.arc
/
NOPRTSC.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-06-30
|
428b
|
17 lines
{$R+,C-}
PROGRAM No_PrtSc;
VAR
Printing : Boolean ABSOLUTE $50 : 0;
CH : Char;
CONST
status : ARRAY[Boolean] OF STRING[7] = ('enable', 'disable');
BEGIN
WriteLn('The PrtSc key is ', status[Printing], 'd.');
Write('Shall I ', status[NOT Printing], ' it? (Y/N)');
REPEAT
Read(Kbd, CH);
CH := UpCase(CH);
UNTIL (CH = 'Y') OR (CH = 'N');
IF CH = 'Y' THEN Printing := NOT Printing;
END.