Skip to content

Commit

Permalink
terminal emulator: clear scrollback buffer when resetting to initial …
Browse files Browse the repository at this point in the history
…state

Fixes utility 'reset' not being able to clear scrollback buffer.
  • Loading branch information
Leonid Plyushch authored and fornwall committed Dec 23, 2019
1 parent fcd3bc1 commit 490853e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,7 @@ private void doEsc(int b) {
break;
case 'c': // RIS - Reset to Initial State (http://vt100.net/docs/vt510-rm/RIS).
reset();
mMainBuffer.clearTranscript();
blockClear(0, 0, mColumns, mRows);
setCursorPosition(0, 0);
break;
Expand Down

0 comments on commit 490853e

Please sign in to comment.