Control: retitle -1 ncurses-bin: ambiguous and possibly buggy behavior of clear 
with the alternate screen

Grrr... With the complete bug title...

On 2021-11-10 12:12:59 +0100, Vincent Lefevre wrote:
> Package: ncurses-bin
> Version: 6.2+20210905-1
> Severity: normal
> 
> By default, the "clear" command clears the screen, including its
> scrollback buffer, as documented by the clear(1) man page.
> 
> However, when the current screen is the alternate screen, e.g. after
> "tput smcup", the "clear" command clears both the alternate screen
> and the scrollback buffer of the *main* screen. I'd say that this is
> unexpected. The alternate screen does not have a scrollback buffer,
> thus when it is the current screen, the "clear" command should not
> clear the scrollback buffer.
[...]

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to