XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next

get-key


Type:   -   function (subr)
Source:   -   msstuff.c, osdefs.h, osptrs.h

Syntax

(get-key)
returns - the decimal ASCII value of the key pressed

Description

The 'get-key' function gets a single key stroke from the keyboard [as opposed to an entire line, as read does].

Examples

(setq mychar (get-key))   ; get a character

Note: This function is an extension of the XLISP system. It is provided in the 'msstuff.c' source code file. If your XLISP system is built for an IBM PC and compatibles or MS-DOS, this function will work. If your system is built on UNIX or some other operating system, this function will only work if it is defined in 'stuff.c'. [I haven't tested this with Nyquist.]

See the get-key function in the XLISP 2.0 manual.

  Back to Top


XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next