From 3e7d3484c37bc8db78d2303f2ae49feb091efb24 Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Sat, 21 Dec 2019 21:16:33 +0200 Subject: [PATCH] terminal emulator: clear scrollback buffer when resetting to initial state Fixes utility 'reset' not being able to clear scrollback buffer. --- .../src/main/java/com/termux/terminal/TerminalEmulator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/terminal-emulator/src/main/java/com/termux/terminal/TerminalEmulator.java b/terminal-emulator/src/main/java/com/termux/terminal/TerminalEmulator.java index 3d9d7c8c79..4e74b9e5f5 100644 --- a/terminal-emulator/src/main/java/com/termux/terminal/TerminalEmulator.java +++ b/terminal-emulator/src/main/java/com/termux/terminal/TerminalEmulator.java @@ -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;