insomaniacal wrote:I think what he wants is for string "x" to be printed over and over while the computer waits for input from the user. So something like this...
- Code: Select all
**Program Starts**
**Program starts waiting for user input**
**Program printing "x" until user input**
x
x
x
x
x
x
x
**user presses a key/types something**
y
Where "x" is the string he wants to be printing, and y is whatever happens after a user hits a key.
That's pretty much exactly what I was looking for, thanks for clarifying.
tgoe wrote:Python 2x/3x input methods only block and won't work for this. I think you can make it work with the python curses bindings though. In particular the getch(), nodelay() and halfdelay() methods.
I have no previous experience with those, so would you mind explaining them a little bit please?