| | |
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 alarm ansi anti approximation assignment avogadro backend beginner binary bluetooth calculator character cmd code customdialog cx-freeze data decimals dictionaries dictionary directory dynamic error examples exe file float format function gnu graphics gui halp heads homework http ideas import input java launcher leftmouse line linux list lists loop module mouse number numbers output parsing path pointer port prime programming progressbar projects push py2exe pygame pyglet pyqt python random recursion schedule screensaverloopinactive script scrolledtext sqlite statistics string strings sudokusolver sum table terminal text thread threading time tlapse tricks tuple tutorial twoup ubuntu unicode urllib urllib2 variable ventrilo wikipedia write wxpython xlib





