commit 4c4aa0e7eb7df99f1bcad885432141dc1cf43dc7
Author:     Jochen Sprickerhof <[email protected]>
AuthorDate: Wed Apr 15 00:01:57 2020 +0200
Commit:     Jochen Sprickerhof <[email protected]>
CommitDate: Wed Apr 15 00:01:57 2020 +0200

    Fix clear screen esc sequences detection

diff --git a/scroll.c b/scroll.c
index 2c3dc99..720ada1 100644
--- a/scroll.c
+++ b/scroll.c
@@ -239,8 +239,9 @@ skipesc(char c)
                            strcmp(buf, "?47l"  ) == 0)
                                altscreen = false;
 
-                       /* don't save clear screen esc sequences in log */
-                       if (strcmp(buf, "H\033[2J") == 0)
+                       /* don't save cursor move or clear screen */
+                       /* esc sequences to log */
+                       if (c == 'H' || strcmp(buf, "2J") == 0)
                                return true;
                }
                break;

Reply via email to