mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 02:35:19 +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
9ebedc4740
commit
9e295b105c
@@ -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