Introduction
Introduction Statistics Contact Development Disclaimer Help
Ignore cursors movement sequences in history - scroll - scrollbackbuffer progra…
git clone git://git.suckless.org/scroll
Log
Files
Refs
README
LICENSE
---
commit f36c0dcd49862f696eb07887313f2e6db331b71d
parent 1dbf2dce08892df710645ddbd2ce12759ec95078
Author: Jochen Sprickerhof <[email protected]>
Date: Thu, 30 Apr 2020 22:27:59 +0200
Ignore cursors movement sequences in history
Diffstat:
M scroll.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/scroll.c b/scroll.c
@@ -211,8 +211,17 @@ skipesc(char c)
/* don't save cursor move or clear screen */
/* esc sequences to log */
- if (c == 'H' || c == 'J')
+ switch (c) {
+ case 'A':
+ case 'B':
+ case 'C':
+ case 'D':
+ case 'H':
+ case 'J':
+ case 'K':
+ case 'f':
return true;
+ }
}
break;
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.