I am trying to make a simple IRC client in Python (as kind of a project while I learn the language).
I have a loop that I use to receive and parse what the IRC server sends me, but if I use raw_input
to input stuff, it stops the loop dead in its tracks until I input something (obviously).
How can I input something without the loop stopping?
Thanks in advance.
(I don't think I need to post the code, I just want to input something without the while 1 loop stopping.)
EDIT: I'm on Windows.
Here a solution that runs under linux and windows using a seperate thread: