3
{ Program to demonstrate the Select function. }
12
Writeln ('Press the <ENTER> to continue the program.');
13
{ Wait until File descriptor 0 (=Input) changes }
14
fpSelect (1,@FDS,nil,nil,nil);
15
{ Get rid of <ENTER> in buffer }
17
Writeln ('Press <ENTER> key in less than 2 seconds...');
20
if fpSelect (1,@FDS,nil,nil,2000)>0 then
21
Writeln ('Thank you !')
22
{ FD_ISSET(0,FDS) would be true here. }
24
Writeln ('Too late !');