From 204eded6ff3a8b4c0be540d6226672b64aca960d Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 7 Nov 2021 04:05:53 -0500 Subject: [PATCH] correct DECSET/DECRST definitions #2330 --- src/lib/internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/internal.h b/src/lib/internal.h index 0d2022ef4..2b7a11607 100644 --- a/src/lib/internal.h +++ b/src/lib/internal.h @@ -1126,8 +1126,8 @@ coerce_styles(fbuf* f, const tinfo* ti, uint16_t* curstyle, #define SET_SAVE_CURSOR "1048" // save cursor ala DECSC (titeInhibit) #define SET_SMCUP "1049" // 1047+1048 (titeInhibit) // DECSET/DECRSTs can be chained with semicolons; can we generalize this? FIXME -#define DECSET(p) "\x1b[" p "h" -#define DECRST(p) "\x1b[" p "l" +#define DECSET(p) "\x1b[?" p "h" +#define DECRST(p) "\x1b[?" p "l" int mouse_setup(tinfo* ti, unsigned eventmask);