[dev] [st][PATCH] Add terminfo definitions for terminals with meta key

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Mon, 12 Aug 2013 16:44:03 +0200

Some programs don't check the value of km and use smm and rmm
capabilites, and they cause the terminal change to meta enabled
mode even in cases where is not desirable.

Allmost all people is using the terminal waiting that meta sends
escape, so rmm and smm are not needed. If someone needs meta
sets 8 bit he can use the correct terminfo definition in TERM.
---
 FAQ     |  6 ++++++
 st.info | 16 ++++++++++++----
 2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/FAQ b/FAQ
index 23d557d..9f30ca3 100644
--- a/FAQ
+++ b/FAQ
_AT_@ -83,3 +83,9 @@ If you are using zsh, then read the zsh FAQ
 		zle -N zle-line-finish
 
 Putting these lines into your .zshrc will fix the problems.
+
+## How can use meta in 8bit mode?
+
+ St support meta in 8bit mode, but the default terminfo entry doesn't
+ use this capability. If you want it, you have to use st-meta value
+ in TERM.
diff --git a/st.info b/st.info
index ff01c80..1019731 100644
--- a/st.info
+++ b/st.info
_AT_@ -1,5 +1,3 @@
-# unsupported xterm caps are (getting) commented. 
-# as soon as they work, uncomment them.
 st| simpleterm,
 	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
 	am,
_AT_@ -162,7 +160,6 @@ st| simpleterm,
 	rmcup=\E[?1049l,
 	rmir=\E[4l,
 	rmkx=\E[?1l\E>,
-	rmm=\E[?1034l,
 	rmso=\E[27m,
 	rmul=\E[m,
 	rs1=\Ec,
_AT_@ -179,7 +176,6 @@ st| simpleterm,
 	smcup=\E[?1049h,
 	smir=\E[4h,
 	smkx=\E[?1h\E=,
-	smm=\E[?1034h,
 	smso=\E[7m,
 	smul=\E[4m,
 	tbc=\E[3g,
_AT_@ -196,3 +192,15 @@ st-256color| simpleterm with 256 colors,
 #	Nicked from xterm-256color
 	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,
+
+st-meta| simpleterm with meta key,
+	use=st,
+	km,
+	rmm=\E[?1034l,
+	smm=\E[?1034h,
+
+st-meta-256color| simpleterm with meta key and 256 colors,
+	use=st-256color,
+	km,
+	rmm=\E[?1034l,
+	smm=\E[?1034h,
-- 
1.8.3.3
Received on Mon Aug 12 2013 - 16:44:03 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 12 2013 - 16:48:05 CEST