954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

get text input from shell cursor

Hello!

I'm trying out the python irclib and it's working fine. I have noticed that when I run my program there is a text cursor displayed under the outputs from print. I can print text there and nothing happens. I wonder how I can use this printed text in my program???

Note that I'm not looking for the normal input() function, that pauses the program and waits for the user input. Because my program is connected to an IRC chat server, I want to be able to get user input in real time.

(I'm new to python and only using the basics with the shell, and want this function working for default input on a 'normal' linux machine. In other words, it should work with basically any python interface.)

ribot
Newbie Poster
19 posts since Jan 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You