Fix arrow keys terminfo capabilities

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Fri, 9 Nov 2012 10:52:10 +0100

Usually the arrow keys generate the ANSI sequence which terminal will
understand like a movement, so it is not necessary any dealing for them, the
program can not know if the sequence is generate for a echo key or directly
from the program. If you need really know if the key was pressed then you
need activate the keypad mode where the keys will generate a special code
for each keypad key.

The terminfo capabilities kcub1, kcud1, kcuf1 and kcuu1 are used for this
keypad code, not for the sequence generate in the ansi mode.
---
 st.info |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/st.info b/st.info
index 63af234..199aff6 100644
--- a/st.info
+++ b/st.info
_AT_@ -50,10 +50,10 @@ st| simpleterm,
 	is2=\E[4l\E>,
 	it#8,
 	kbs=\177,
-	kcub1=\E[D,
-	kcud1=\E[B,
-	kcuf1=\E[C,
-	kcuu1=\E[A,
+	kcub1=\EOD,
+	kcud1=\EOB,
+	kcuf1=\EOC,
+	kcuu1=\EOA,
 	kLFT=\E[d,
 	kRIT=\E[c,
 	kind=\E[a,
-- 
1.7.10.4
--4Ckj6UjgE2iN1+kY
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename="0006-Add-control-and-meta-combinations-for-arrow-keys.patch"
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Tue Nov 13 2012 - 19:36:05 CET