Control: tags -1 = wontfix

Sorry for not having looked at this bug for a very long time.

Am 05.07.2006 um 14:37 schrieb Matthias Klose:

> Package: ncurses-bin
> Severity: wishlist
> Tags: patch
>
> clear_console is currently included in the bash package, used in
> .bash_logout to clear the console and clear the buffer of the console.
> It's not specific to bash and maybe should be added to the same
> package where you find clear(1).

It seems to me that clear_console is rather obsolete these days, because

- The getty program (since util-linux 2.20) defaults to clearing the
  terminal, including the scrollback buffer.  Systemd, while running
  getty with the --noclear argument, has a similar mechanism.  So unless
  the sysadmin has modified /etc/inittab or systemd's getty*.service
  files, the console is cleared after the user logs out.

- The clear(1) command (since the 20130622 ncurses patchlevel) also
  clears the scrollback buffer if the E3 capability is advertised in the
  terminfo description.  While the linux terminfo entry currently lacks
  this capability (see #823658), it has been present in the xterm
  terminfo entry since ncurses-base 5.9+20140712-1.  So instead of
  clear_console, you could simply run "TERM=xterm clear" from the
  .bash_logout file.

Given these considerations, I don't see a good reason for adding
clear_console to ncurses-bin.

Cheers,
       Sven

Reply via email to