[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Waldhäuser Str. 64, D-72076 Tübingen, Germany
[Uni logo]


READ_KEY Source code in read_key.pro

READ_KEY

Name
       READ_KEY
Purpose
       To read a keystroke and return its ASCII equivalent
Explanation
       If an ESCAPE sequence was produced and  the sequence is
       recognized (e.g. up arrow), then a code is returned.
Calling Sequence
       key = READ_KEY(Wait)
Input Parameters
       Wait  -  The wait flag.  If non-zero, execution is halted until a
                key is struck.  If zero, execution returns immediately and
                a zero is returned if there was no keystroke waiting in the
                keyboard buffer.  If not specified, zero is assumed.
Output Parameters
       Returned - The key struck.  The ASCII code for non-escape sequences.
                  Escape sequence equivalents:
                       Up Arrow     --  128
                       Down Arrow   --  130
                       Left Arrow   --  129
                       Right Arrow  --  131
                       Else         --    0
       The return value is a byte value.
Revision History
       Written by Michael R. Greason, STX, 22 June 1990.
       Rewritten for a SUN workstation.  MRG, STX, 23 August 1990.
       Converted to IDL V5.0   W. Landsman   September 1997

Last modified by pro2html on 2001 April 26 at 03:14 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically