Language:
Русский
English
{GetCBrk.PAS}
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
{Sample code for the GetCBreak and SetCBreak procedures.}
uses WinDos, WinCrt;
const
OffOn : array [Boolean] of String[3] =
('off','on');
var
cb : Boolean;
begin
GetCBreak(cb);
Writeln('Control-Break checking is ',
OffOn[cb]);
cb := not(cb);
Writeln('Turning Control-Break checking ',
OffOn[cb]);
SetCBreak(cb);
end.