add terminfo entries to undercurl patch

This commit is contained in:
Luca Bilke 2024-01-09 13:10:00 +01:00
parent 0ec2691e75
commit 49324e1ccd
2 changed files with 21 additions and 3 deletions

View file

@ -31,7 +31,7 @@ index 91ab8ca..b959ad6 100644
+// Active style
+#define UNDERCURL_STYLE UNDERCURL_SPIKY
diff --git a/st.c b/st.c
index d6478f5..aedf938 100644
index 134e724..3f309a0 100644
--- a/st.c
+++ b/st.c
@@ -33,6 +33,7 @@
@ -163,7 +163,7 @@ index fd3b0d8..5d398b5 100644
typedef Glyph *Line;
diff --git a/st.info b/st.info
index efab2cf..23b1875 100644
index 8201ad6..e9e36c5 100644
--- a/st.info
+++ b/st.info
@@ -1,4 +1,5 @@
@ -172,8 +172,24 @@ index efab2cf..23b1875 100644
acsc=+C\,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
am,
bce,
@@ -177,6 +178,7 @@ st-mono| simpleterm monocolor,
smkx=\E[?1h\E=,
smso=\E[7m,
smul=\E[4m,
+ Smulx=\E[4\:%p1%dm,
tbc=\E[3g,
tsl=\E]0;,
xenl,
@@ -200,6 +202,7 @@ st| simpleterm,
setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
+ Setulc=\E58\:2\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m,
st-256color| simpleterm with 256 colors,
use=st,
diff --git a/x.c b/x.c
index b36fb8c..2f036d1 100644
index aa09997..04de908 100644
--- a/x.c
+++ b/x.c
@@ -45,6 +45,14 @@ typedef struct {

View file

@ -178,6 +178,7 @@ st-mono| simpleterm monocolor,
smkx=\E[?1h\E=,
smso=\E[7m,
smul=\E[4m,
Smulx=\E[4\:%p1%dm,
tbc=\E[3g,
tsl=\E]0;,
xenl,
@ -205,6 +206,7 @@ st| simpleterm,
setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
Setulc=\E58\:2\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&%d\:%p1%{255}%&%d%;m,
st-256color| simpleterm with 256 colors,
use=st,