thestinger / termite

Termite is obsoleted by Alacritty. Termite was a keyboard-centric VTE-based terminal, aimed at use within a window manager with tiling and/or tabbing support.
https://github.com/alacritty/alacritty
2.73k stars 240 forks source link

clear doesn't prevent scrolling back to output #668

Closed ifohancroft closed 4 years ago

ifohancroft commented 5 years ago

Using Termite version 13, when I execute clear, I can scrollback to the output and I shouldn't be able to.

GOKOP commented 5 years ago

But isn't that because of how clear works? It inputs newlines.

Narrat commented 5 years ago

Yes, kinda. Although it will use specific ANSI escape sequences if the terminal is ANSI-based. And even the vte test terminal behaves that way, although the scrollback buffer is reduced. But not completly removed. AFAIK the only way to make sure, that there is no scrollback buffer, is to use reset instead of clear.

egmontkob commented 5 years ago

See https://bugzilla.gnome.org/show_bug.cgi?id=506438#c19. That is, with clear from a recent ncurses, this is probably no longer an issue (without requiring the aforementioned change in terminfo).

ifohancroft commented 4 years ago

I am closing this as I come to believe we need to have both 'clear' and 'clear scrollback and reset' as sometimes you need one and other times you need the other.