Skip to content

Commit 5382d09

Browse files
committed
Issue #119 fixed.
1 parent 4e86b2f commit 5382d09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bpython/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ def echo(self, s, redraw=True):
479479
s = s.replace('\x01', '')
480480
# Replace NUL bytes, as addstr raises an exception otherwise
481481
s = s.replace('\x00', '')
482+
# Replace \r\n bytes, as addstr remove the current line otherwise
483+
s = s.replace('\x0D\x0A', '\x0A')
482484

483485
self.scr.addstr(s, a)
484486

0 commit comments

Comments
 (0)