mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-05 02:05:25 +08:00
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:
committed by
Fredrik Fornwall
parent
fcd3bc1133
commit
490853e427
@@ -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;
|
||||
|
Reference in New Issue
Block a user