terminal emulator: clear scrollback buffer when resetting to initial state

Fixes utility 'reset' not being able to clear scrollback buffer.
This commit is contained in:
Leonid Plyushch
2019-12-21 21:16:33 +02:00
committed by Fredrik Fornwall
parent fcd3bc1133
commit 490853e427

View File

@@ -1267,6 +1267,7 @@ public final class TerminalEmulator {
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;