Get_key
- Posted by "Wallace B. Riley" <wryly at MINDSPRING.COM> Aug 28, 1997
- 775 views
I'm puzzled about the proper use of 'get_key'. I am writing a program that wants to know, at some point, what I want it to do. It has a 'get_key' command. If I press Q, it means 'quit' and the program is aborted; if I press any other key, it means 'exit' the subroutine and continue with another part of the program. What does the program do while waiting for me to press the key? It probably involves some clever combination of 'while' or 'elsif' or some such thing, but I haven't figured out just what it should be yet. Or maybe I shouldn't use 'get_key' at all, in which case what should I use? Wally Riley wryly at mindspring.com