Skip to content

Commit 0a5335d

Browse files
committed
Fix clear_screen as per #180
1 parent 5135837 commit 0a5335d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gdbinit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ class Dashboard(gdb.Command):
697697
# ANSI: move the cursor to top-left corner and clear the screen
698698
# (optionally also clear the scrollback buffer if supported by the
699699
# terminal)
700-
return '\x1b[H\x1b[J' + ('\x1b[3J' if R.discard_scrollback else '')
700+
return '\x1b[H\x1b[2J' + ('\x1b[3J' if R.discard_scrollback else '')
701701

702702
@staticmethod
703703
def setup_terminal():

0 commit comments

Comments
 (0)