GETKEY.TTP A utility for Tomshell users Copyright 23 February 1994 by GRUNT Software and Rich Tietjens Version 1.00 Copyright 13 June 1993, GRUNT Software and Rich Tietjens OPERATION: Place the GETKEY.TTP program anywhere you want to. You must run it from a Tomshell (and since it's designed to work especially with Tomshell, there isn't much point in doing it any other way!). GETKEY will accept a single keypress, write out a small Tomshell batch file to pass the value of the key to the Tomshell environmental variable "kp", and then exit. Possible values are any of the usual letters, numbers, and punctuation, plus "RETURN", "ESC", "BS", "TAB", and "DEL". Due to the way the ST handles keyboard input, the HELP, UNDO, INSERT, CLR/HOME, cursor, and function keys all generate a value of zero, making it impossible to determine which one was pressed using GETKEY. You may also use GETKEY to display a menu; it accepts an optional parameter on the command line, which should be a full pathname for the menu. GETKEY will display the menu file on the screen. The menu file may contain VT-52 codes in addition to the usual printable characters. If no filename is passed, GETKEY will skip over that section of the code.