Skip to content

Commit b26e8af

Browse files
committed
one last attempt to fix leftover crap on screen
1 parent 1bf02ee commit b26e8af

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bpython/cli.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,7 +2120,9 @@ def main_curses(scr, args, interactive=True):
21202120
hfile.writelines(repl.rl_hist[-OPTS.hist_length:])
21212121

21222122
main_win.erase()
2123-
statusbar.win.erase()
2123+
main_win.refresh()
2124+
statusbar.win.clear()
2125+
statusbar.win.refresh()
21242126
return repl.getstdout()
21252127

21262128

@@ -2178,8 +2180,7 @@ def main(args=None):
21782180
# I don't know why this is necessary; without it the wrapper doesn't always do
21792181
# its job.
21802182
if stdscr is not None:
2181-
stdscr.erase()
2182-
curses.doupdate()
2183+
stdscr.clear()
21832184
stdscr.keypad(0)
21842185
curses.echo()
21852186
curses.nocbreak()

0 commit comments

Comments
 (0)