Re: question about getch()

2007-05-24 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hey all, > > I'm having a problem with using msvcrt.getch() . What I want is some > functionality like this: > > print 'blah blah blah, good_input to do blah blah blah, exit_key to exit' > > while input != exit_key: > input = get_input_from_getch() > > i

question about getch()

2007-05-24 Thread gliquidsnake
Hey all, I'm having a problem with using msvcrt.getch() . What I want is some functionality like this: print 'blah blah blah, good_input to do blah blah blah, exit_key to exit' while input != exit_key: input = get_input_from_getch() if input == good_input: print input