From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c78c8ae143b819a3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1993-04-03 16:58:40 PST Newsgroups: comp.lang.ada Path: gmd.de!ira.uka.de!yale.edu!newsserver.jvnc.net!howland.reston.ans.net!usc!cs.utexas.edu!asuvax!ennews!clarkm From: clarkm@slab.pr.erau.edu (Michael Clark) Subject: Re: How to read keys without , also, simulated GUI? Message-ID: <1993Apr4.004114.14343@ennews.eas.asu.edu> Sender: news@ennews.eas.asu.edu (USENET News System) Organization: Embry-Riddle Aeronautical University, Prescott References: <1993Apr2.094834.120157@marshall.wvnet.edu> Date: Sun, 4 Apr 1993 00:41:14 GMT Date: 1993-04-04T00:41:14+00:00 List-Id: There are basically two methods for achieving "raw" character entries from the keyboard. I can speak only from use with Janus/Ada. If you just want to have the user hit a key (any key, for that matter) with no real prescribed action, simple put a SKIP_LINE directly after the GET. A better approach would be to the implementation dependencies of I/O. The easiest way is to open a default "raw" keyboard file using the following syntax : OPEN(KEYBOARD_FILE, OUT_FILE, "KBD:"); The "KBD:" is a special device name, which basically is a buffer for the keyboard. The file does not need to be CREATED, only OPENed. You can then test the contents of the file (e.g. see what character was hit) by using GET(KEYBOARD_FILE, CHARACTER) where CHARACTER has been defined to an appropriate type. I have used this method several time, and if you need more infor or sample source code, feel free to send me mail. - Mike Clark Embry-Riddle Aero. Univ. clarkm@slab.pr.erau.edu