qterminal icon indicating copy to clipboard operation
qterminal copied to clipboard

Reset to Initial State (RIS) escape sequence does not clear scrollback

Open planet36 opened this issue 7 years ago • 0 comments

$ qterminal --version 0.7.1

Enter this command: (I'm using bash) printf '\ec' or printf '\033c'

Expected behavior: Output is cleared and scrollback is reset.

Actual behavior: Output is shifted up but not really cleared. Seems to do the equivalent of Ctrl+L

Work around: Actions -> Clear Current Tab (Ctrl+Shift+X)

Background info: https://en.wikipedia.org/wiki/ANSI_escape_code

ESC c RIS - Reset to Initial State Resets the device to its original state. This may include (if applicable): reset graphic rendition, clear tabulation stops, reset to default font, and more.

planet36 avatar Jun 18 '17 03:06 planet36