Get_key

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu