Skip to content

Commit 1bf02ee

Browse files
committed
try again to fix leftover crap on the screen
1 parent 8b50146 commit 1bf02ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bpython/cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2119,6 +2119,8 @@ def main_curses(scr, args, interactive=True):
21192119
'ignore') as hfile:
21202120
hfile.writelines(repl.rl_hist[-OPTS.hist_length:])
21212121

2122+
main_win.erase()
2123+
statusbar.win.erase()
21222124
return repl.getstdout()
21232125

21242126

@@ -2176,7 +2178,8 @@ def main(args=None):
21762178
# I don't know why this is necessary; without it the wrapper doesn't always do
21772179
# its job.
21782180
if stdscr is not None:
2179-
stdscr.clear()
2181+
stdscr.erase()
2182+
curses.doupdate()
21802183
stdscr.keypad(0)
21812184
curses.echo()
21822185
curses.nocbreak()

0 commit comments

Comments
 (0)