[hackers] [st][PATCH] sgr-patch

From: Mikhail Kot <to_AT_myrrc.dev>
Date: Thu, 18 Apr 2024 23:58:27 +0100

Colon-separated SGR (new version; ':' is the legacy one)

---
 st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c
index b9f66e7..7c1cb9a 100644
--- a/st.c
+++ b/st.c
_AT_@ -1149,7 +1149,7 @@ csiparse(void)
 			v = -1;
 		csiescseq.arg[csiescseq.narg++] = v;
 		p = np;
-		if (*p != ';' || csiescseq.narg == ESC_ARG_SIZ)
+		if ((*p != ';' && *p != ':') || csiescseq.narg == ESC_ARG_SIZ)
 			break;
 		p++;
 	}
-- 
2.43.0
Received on Fri Apr 19 2024 - 00:58:27 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 19 2024 - 01:00:41 CEST