aboutsummaryrefslogtreecommitdiffstats
path: root/st.info
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.com>2012-11-13 20:04:54 +0100
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2012-11-13 20:04:54 +0100
commit44597b359e030d86e16ab9b6510f54366d57e5ac (patch)
tree2e2ec7cb0d1ed2eb392b7490a14cc233ec8310fa /st.info
parent3b16695f4e8a29f47ad273912065dfba53544a29 (diff)
downloadst-44597b359e030d86e16ab9b6510f54366d57e5ac.tar.gz
Add control and meta combinations for arrow keys
Since there isn't any terminfo capability for control and meta modifiers for arrows keys it is necessary use the same that almost terminal emulators use, because there are a lot of programs which have these codes hardcoded. This cause also that shift combinations are also changed, but in this case this is not a problem since there are terminfo capabilities for them. After this patch shift-up and shift-down continue not working in emacs with TERM=st, but they work with TERM=xterm, so it is possible some other changes are necessary in the terminfo entry. --- config.def.h | 16 ++++++++++++---- st.info | 8 ++++---- 2 files changed, 16 insertions(+), 8 deletions(-)
Diffstat (limited to 'st.info')
-rw-r--r--st.info8
1 files changed, 4 insertions, 4 deletions
diff --git a/st.info b/st.info
index 199aff6..be2a47e 100644
--- a/st.info
+++ b/st.info
@@ -54,10 +54,10 @@ st| simpleterm,
kcud1=\EOB,
kcuf1=\EOC,
kcuu1=\EOA,
- kLFT=\E[d,
- kRIT=\E[c,
- kind=\E[a,
- kri=\E[b,
+ kLFT=\E[1;2D,
+ kRIT=\E[1;2C,
+ kind=\E[1;2B,
+ kri=\E[1;2A,
kdch1=\E[3~,
kich1=\E[2~,
kend=\E[4~,
remember that computers suck.