Re: [PATCH] console_codes(4): Add ESC [ 3 J

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Petr,

2011/4/22 Petr Písař <ppisar@xxxxxxxxxx>:
> Linux is going
> (http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commit;h=f8df13e0a901fe55631fed66562369b4dba40f8b)
> to implement \E[3J to allow scrambling content of console including
> scroll-back buffer (http://thread.gmane.org/gmane.linux.kernel/1125792).
>
> This is useful at terminal lock to disallow attacker to scroll visible
> window back and to see sensitive data. Other \E[J sequences do not
> blank history. Terminal reset (\Ec) or DECSRC are not suitable for
> extension too beacuse they reset font, keyboard locks, unicode mode
> etc. that are needed after unlocking session.
>
> \E[3J is superset of \E[2J. IOW it clears visible screen too.
>
> Signed-off-by: Petr Písař <ppisar@xxxxxxxxxx>

Thanks. I applied this for man-pages-3.33.

Cheers,

Michael


> ---
>  man4/console_codes.4 |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/man4/console_codes.4 b/man4/console_codes.4
> index 2a806b7..62f2247 100644
> --- a/man4/console_codes.4
> +++ b/man4/console_codes.4
> @@ -188,6 +188,8 @@ H   CUP     Move cursor to the indicated row, column (origin at 1,1).
>  J      ED      Erase display (default: from cursor to end of display).
>                ESC [ 1 J: erase from start to cursor.
>                ESC [ 2 J: erase whole display.
> +               ESC [ 3 J: erase whole display including scroll-back
> +               buffer.
>  K      EL      Erase line (default: from cursor to end of line).
>                ESC [ 1 K: erase from start of line to cursor.
>                ESC [ 2 K: erase whole line.
> --
> 1.7.4.4
>
>



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux