diff options
author | Roberto E. Vargas Caballero | 2012-11-13 20:04:50 +0100 |
---|---|---|
committer | Roberto E. Vargas Caballero | 2012-11-13 20:04:50 +0100 |
commit | 585f004c98cba53b252bfe901c9c81f1554aef2a (patch) | |
tree | 889458d2b43ce7807e99c360318af6e07d14d025 | |
parent | b467c95a4a015a67f974007b9d732cba57cc5b99 (diff) | |
download | aur-585f004c98cba53b252bfe901c9c81f1554aef2a.tar.gz |
Fix arrow keys terminfo capabilities
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(-)
-rw-r--r-- | st.info | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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, |