Skip to content

Commit ea62fad

Browse files
committed
Feed network input to urwid as input, not directly to the interpreter.
This means you get visual feedback of input, not just output.
1 parent 3d6b255 commit ea62fad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bpython/urwid.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ def __init__(self, myrepl):
9090
self.repl = myrepl
9191

9292
def lineReceived(self, line):
93-
self.repl.push(line)
93+
# HACK!
94+
# TODO: deal with encoding issues here...
95+
self.repl.main_loop.process_input(line)
96+
self.repl.main_loop.process_input(['enter'])
9497

9598

9699
class EvalFactory(protocol.ServerFactory):

0 commit comments

Comments
 (0)