From 07203c67ca39cfc343d739b8b0b7b6d241fc5478 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 9 May 2023 08:28:54 +0530 Subject: [PATCH] Add a note about why kitty terminfo does not have E3 See #6255 --- kitty/terminfo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kitty/terminfo.py b/kitty/terminfo.py index a8aa010ce..91a61b7f7 100644 --- a/kitty/terminfo.py +++ b/kitty/terminfo.py @@ -111,6 +111,10 @@ string_capabilities = { 'civis': r'\E[?25l', # Clear screen 'clear': r'\E[H\E[2J', + # Clear scrollback. This is disabled because the clear program on Linux by default, without + # an option, uses it and nukes the scrollback. What's more this behavior was silently changed + # around 2010? Given clear is maintained as part of ncurses this kind of crap is no surprise. + # 'E3': r'\E[3J', # Make cursor appear normal 'cnorm': r'\E[?12h\E[?25h', # Carriage return