home *** CD-ROM | disk | FTP | other *** search
- {----------------------------------------------------------------------}
- { Keyin : Key input from keyboard }
- {----------------------------------------------------------------------}
- Function Keyin: Byte; { Single-Key Input Routine (MSDOS/PCDOS) }
- Const
- Esc = #27; { Esc key }
- Var
- Ch :char;
- Begin
- Read(Kbd,Ch);
- if (Ch = Esc) and keypressed then
- begin { If extended key type get }
- Read(kbd,Ch); { get next key in }
- end;
- Keyin := Ord(Ch) ; { Assign input to Output }
- End;