diff --git a/kitty/terminfo.py b/kitty/terminfo.py index a3cbff285..2517bd6de 100644 --- a/kitty/terminfo.py +++ b/kitty/terminfo.py @@ -227,8 +227,8 @@ string_capabilities = { 'rmso': r'\E[27m', # Exit underline mode 'rmul': r'\E[24m', - # Reset string1 - 'rs1': r'\Ec', + # Reset string1 (empty OSC sequence to exit OSC/OTH modes, and regular reset) + 'rs1': r'\E]\E\\\Ec', # Save cursor 'sc': r'\E7', # Set background color diff --git a/terminfo/78/xterm-kitty b/terminfo/78/xterm-kitty index ea4a1ee0d..242107798 100644 Binary files a/terminfo/78/xterm-kitty and b/terminfo/78/xterm-kitty differ diff --git a/terminfo/kitty.terminfo b/terminfo/kitty.terminfo index 8e6dad247..afe9aa275 100644 --- a/terminfo/kitty.terminfo +++ b/terminfo/kitty.terminfo @@ -121,7 +121,7 @@ xterm-kitty|KovIdTTY, rmkx=\E[?1l, rmso=\E[27m, rmul=\E[24m, - rs1=\Ec, + rs1=\E]\E\\\Ec, sc=\E7, setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m, setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m, diff --git a/terminfo/x/xterm-kitty b/terminfo/x/xterm-kitty index ea4a1ee0d..242107798 100644 Binary files a/terminfo/x/xterm-kitty and b/terminfo/x/xterm-kitty differ