Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Fix keypad mode and cursor mode
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
8bf9337
..
683a0e9
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-121,7
+121,8
@@
enum term_mode {
MODE_REVERSE = 128,
MODE_KBDLOCK = 256,
MODE_HIDE = 512,
MODE_REVERSE = 128,
MODE_KBDLOCK = 256,
MODE_HIDE = 512,
- MODE_ECHO = 1024
+ MODE_ECHO = 1024,
+ MODE_APPCURSOR = 2048
};
enum escape_state {
};
enum escape_state {
@@
-1471,7
+1472,7
@@
tsetmode(bool priv, bool set, int *args, int narg) {
switch(*args) {
break;
case 1: /* DECCKM -- Cursor key */
switch(*args) {
break;
case 1: /* DECCKM -- Cursor key */
- MODBIT(term.mode, set, MODE_APP
KEYPAD
);
+ MODBIT(term.mode, set, MODE_APP
CURSOR
);
break;
case 5: /* DECSCNM -- Reverse video */
mode = term.mode;
break;
case 5: /* DECSCNM -- Reverse video */
mode = term.mode;