Category : Pascal Source Code
Archive   : PIBMDOS.ZIP
Filename : READKBD.PAS
(* Read_Kbd --- Read one character from keyboard *)
(*----------------------------------------------------------------------*)
PROCEDURE Read_Kbd( VAR Ch: CHAR );
(*----------------------------------------------------------------------*)
(* *)
(* Procedure: Read_Kbd *)
(* *)
(* Purpose: Reads one character from the keyboard *)
(* *)
(* Calling Sequence: *)
(* *)
(* Read_Kbd( VAR Ch: CHAR ); *)
(* *)
(* Ch --- Character read *)
(* *)
(* Remarks: *)
(* *)
(* This routine centralizes single character keyboard reads so *)
(* that time-slicing control for multitaskers is more easily *)
(* centralized. In this particular implementation, the time *)
(* spent waiting for a keyboard entry is donated to the other *)
(* partitions. *)
(* *)
(*----------------------------------------------------------------------*)
BEGIN (* Read_Kbd *)
WHILE ( NOT KeyPressed ) DO
GiveAwayTime( 2 );
READ( Kbd, Ch );
END (* Read_Kbd *);
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/