Hi Folks,
I have a need to capture control/function keys from the keyboard in a basic program. The IN() function does exactly this but I'm having a bit of trouble figuring out how to recognize the "end" of a multi-character keystroke. The cursor keys and function keys all start with ESC (Char-27) but have a variable number of characters afterwards. I'm looking for a way to recognize the difference between pressing the F1 key verses typing type <ESC><O><P> keys. They both bring in data, character by character, as CHAR(27), CHAR(79), then CHAR(80). I've tried using the INPUT VAR UNFILTERED command but then it requires an additional Enter key to release the data to the program. I can't set a length because of the number of characters in the function keys, and any kind of time limit is going to be too long to be bearable. Oh, and I also need to be able to recognize the difference between the escape key by itself verses the start of a function key. The system is Unidata 6.1. Thanks in advance for any thoughts or suggestions. Bob Woodward System Programmer/Analyst K2 Sports _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
