Re: [hackers] [scroll][PATCH] Don't retain any clear screen sequence variants.

From: Jochen Sprickerhof <suckless_AT_jochen.sprickerhof.de>
Date: Sun, 26 Apr 2020 22:32:38 +0200

Thanks!

* Ian Remmler <ian_AT_remmler.org> [2020-04-25 17:13]:
>(Simpler, replaces previous patch)
>
>Elide all clear screen escape sequences from the scrollback buffer,
>partial or complete. zshell, for example, emits ^[[J on startup, which
>causes the scrolled down portion of the screen to be cleared when
>scrolling to the beginning of the buffer and less than the entire screen
>is scrolled.
>---
> scroll.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/scroll.c b/scroll.c
>index 722ea01..7e46828 100644
>--- a/scroll.c
>+++ b/scroll.c
>_AT_@ -208,7 +208,7 @@ skipesc(char c)
>
> /* don't save cursor move or clear screen */
> /* esc sequences to log */
>- if (c == 'H' || strcmp(buf, "2J") == 0)
>+ if (c == 'H' || c == 'J')
> return true;
> }
> break;
>--
>2.26.2
>
>
>
>--
> - Ian.
>

Received on Sun Apr 26 2020 - 22:32:38 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 26 2020 - 22:36:36 CEST