Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!iuvax!iucs!cjl From: cjl@iucs.cs.indiana.edu Newsgroups: comp.lang.pascal Subject: Re: Reading Function Keys - Turbo Pasca Message-ID: <126200001@iucs> Date: Sun, 8-Nov-87 17:02:00 EST Article-I.D.: iucs.126200001 Posted: Sun Nov 8 17:02:00 1987 Date-Received: Wed, 11-Nov-87 05:02:48 EST References: <1329@cup.portal.com> Organization: Indiana University CSCI, Bloomington Lines: 20 Nf-ID: #R:cup.portal.com:-132900:iucs:126200001:000:789 Nf-From: iucs.cs.indiana.edu!cjl Nov 8 17:02:00 1987 > The function keys actually return two codes when pressed. The first of > these is an escape (ascii 27). (NOTE: This is in TP ONLY. In reality the > first scan code is 0, and most languages use that. I don't know why Borland > coverted it). The second is ... According to ASCII, ESC (27) is used for designating escape sequence not the NUL (0) character. For example Microsoft's driver ANSI.SYS is consistently using ESC as the output escape character not NUL character. Unfortunately many application programs use ESC as an input command e.g. aborting the execution. I guess it is for this reason IBM uses NUL as the input escape character not ESC. C.J.Lo Dept. of CIS, IUPUI cjl@iucs.cs.indiana.edu {ihnp4}...{inuxc|pur-ee|rutgers|uiucdcs|mit-hermes}!iucs!cjl