Skip to content

Commit

Permalink
Fix clear_screen as per #180
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus-and committed Jan 6, 2023
1 parent 5135837 commit 0a5335d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gdbinit
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ class Dashboard(gdb.Command):
# ANSI: move the cursor to top-left corner and clear the screen
# (optionally also clear the scrollback buffer if supported by the
# terminal)
return '\x1b[H\x1b[J' + ('\x1b[3J' if R.discard_scrollback else '')
return '\x1b[H\x1b[2J' + ('\x1b[3J' if R.discard_scrollback else '')

@staticmethod
def setup_terminal():
Expand Down

0 comments on commit 0a5335d

Please sign in to comment.