| | |
get text input from shell cursor
![]() |
•
•
Join Date: Jan 2007
Posts: 6
Reputation:
Solved Threads: 0
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.)
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.)
![]() |
Similar Threads
- Help on clear text in <input> !! (HTML and CSS)
- Text input box alignment question (HTML and CSS)
- how do i keep a blinking cursor on the site? (JavaScript / DHTML / AJAX)
Other Threads in the Python Forum
- Previous Thread: Center a Tkinter Window
- Next Thread: Dictionary -- states and their capitals
| Thread Tools | Search this Thread |
abrupt accessdenied advanced ansi anti apache application approximation argv array backend beginner binary builtin calculator change command converter countpasswordentry csv curved dan08 def dictionary edit event file float format function google heads homework inches input jaunty java keyboard lapse library line lines linux list lists loop microphone mouse movingimageswithpygame mysqlquery newb number numbers numeric obexftp output parameters parsing path phonebook pointer prime programming py2exe pygame pyopengl python random recursion redirect remote return reverse scrolledtext session software sprite statictext statistics string strings syntax terminal text thread threading time tlapse tuple twoup ubuntu unicode unit urllib urllib2 variable voip wordgame write wxpython





