1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
From: Tim Stack <timothyshanestack@gmail.com>
Date: Thu, 20 Feb 2025 20:39:49 -0800
Subject: [notcurses] handle failure to set cregs from tmux
Origin: https://github.com/tstack/lnav/commit/5e0bfa483714f05397265a690960d23ae22e1838
Bug: https://github.com/tstack/lnav/issues/1390
Bug-Debian: https://bugs.debian.org/1109004
Related to #1390
---
src/third-party/notcurses/src/lib/in.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/third-party/notcurses/src/lib/in.c b/src/third-party/notcurses/src/lib/in.c
index ae97dd294761..f2f60f10b739 100644
--- a/src/third-party/notcurses/src/lib/in.c
+++ b/src/third-party/notcurses/src/lib/in.c
@@ -878,7 +878,7 @@ kitty_cb(inputctx* ictx){
return 2;
}
-static int
+static int
kitty_cb_atxtn(inputctx* ictx, int n, int with_event){
uint32_t txt[5]={0};
unsigned val = amata_next_numeric(&ictx->amata, "\x1b[", ';');
@@ -1868,7 +1868,7 @@ build_cflow_automaton(inputctx* ictx){
{ "[?1;2S", NULL, }, // negative cregs XTSMGRAPHICS
{ "[?1;3S", NULL, }, // negative cregs XTSMGRAPHICS
{ "[?1;3;S", NULL, }, // iterm2 negative cregs XTSMGRAPHICS
- { "[?1;3;0S", NULL, }, // negative cregs XTSMGRAPHICS
+ { "[?1;3;\\NS", NULL, }, // negative cregs XTSMGRAPHICS
{ "[?2;1S", NULL, }, // negative pixels XTSMGRAPHICS
{ "[?2;2S", NULL, }, // negative pixels XTSMGRAPHICS
{ "[?2;3S", NULL, }, // negative pixels XTSMGRAPHICS
@@ -1878,6 +1878,7 @@ build_cflow_automaton(inputctx* ictx){
{ "[?7c", da1_cb, }, // CSI ? 7 c ("VT131")
{ "[?1;0c", da1_cb, }, // CSI ? 1 ; 0 c ("VT101 with No Options")
{ "[?1;2c", da1_cb, }, // CSI ? 1 ; 2 c ("VT100 with Advanced Video Option")
+ { "[?1;2;\\Dc", da1_attrs_cb, },
{ "[?4;6c", da1_cb, }, // CSI ? 4 ; 6 c ("VT132 with Advanced Video and Graphics")
// CSI ? 1 2 ; Ps c ("VT125")
// CSI ? 6 0 ; Ps c (kmscon)
--
2.50.0
|