diff options
author | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2012-11-16 11:32:17 +0100 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2012-11-16 11:32:17 +0100 |
commit | 55087ec2c7e78e4349259c4547aa58fa705fa915 (patch) | |
tree | 8b8eb08fee1f57fca174c9e9d45d0767497843c3 /st.1 | |
parent | 1cbe56026b1003d96d81c17e43ff21d1b0064b21 (diff) | |
download | st-55087ec2c7e78e4349259c4547aa58fa705fa915.tar.gz st-55087ec2c7e78e4349259c4547aa58fa705fa915.tar.bz2 |
Add application cursor sequences for Home
The commit 'Fixing some key issues with mc' fix the problem where mc didn't
recognize home key because the generated code and the terminfo entry were
different (terminfo khome = \E[1~ but generates \033[H).
Home key in ansi mode should generate the sequence CUP (\033[H) to 0,0 (home
position), but it is also interesting generate a application code which
identifies the key. Real vt520 only generates the ansi sequence CUP, linux
console generates only the application code \033[1~, xterm generates CUP in
ansi mode and \033OH in cursor application mode, rxvt only generates the
application code \033[7~.
This patch sets CUP in ansi mode and \033[1~ in cursor application mode, so
it can be used in both modes and the application mode value is similar to
near values (insert = \033[2~, Prior = \033[5~, Next = \033[6~, End =
\033[4~, Supr = \033[3).
---
config.def.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
Diffstat (limited to 'st.1')
0 files changed, 0 insertions, 0 deletions