mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +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;
|
break;
|
||||||
case 'c': // RIS - Reset to Initial State (http://vt100.net/docs/vt510-rm/RIS).
|
case 'c': // RIS - Reset to Initial State (http://vt100.net/docs/vt510-rm/RIS).
|
||||||
reset();
|
reset();
|
||||||
|
mMainBuffer.clearTranscript();
|
||||||
blockClear(0, 0, mColumns, mRows);
|
blockClear(0, 0, mColumns, mRows);
|
||||||
setCursorPosition(0, 0);
|
setCursorPosition(0, 0);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user