diff options
| author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2011-01-23 12:30:01 +0100 |
|---|---|---|
| committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2011-01-23 12:30:01 +0100 |
| commit | 4d649c240326aa3292adf629c90ea528ecbe844f (patch) | |
| tree | 52575531d9fcee0b2e845406bdf886d32d8745be | |
| parent | 0a208cb6168a0acc9b5692b84ef061b25a5e81f1 (diff) | |
| download | st-4d649c240326aa3292adf629c90ea528ecbe844f.tar.gz st-4d649c240326aa3292adf629c90ea528ecbe844f.zip | |
fix insert key, terminfo and changed TERM back to st. (thx Ondrej Martinek)
| -rw-r--r-- | config.def.h | 3 | ||||
| -rw-r--r-- | st.info | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index b33e9b6..ced3000 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #define TAB 8 | 1 | #define TAB 8 |
| 2 | #define TNAME "xterm" | 2 | #define TNAME "st-256color" |
| 3 | #define FONT "-*-*-medium-r-*-*-*-120-75-75-*-60-*-*" | 3 | #define FONT "-*-*-medium-r-*-*-*-120-75-75-*-60-*-*" |
| 4 | #define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-60-*-*" | 4 | #define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-60-*-*" |
| 5 | #define BORDER 2 | 5 | #define BORDER 2 |
| @@ -34,6 +34,7 @@ static const char *colorname[] = { | |||
| 34 | /* Special keys */ | 34 | /* Special keys */ |
| 35 | static Key key[] = { | 35 | static Key key[] = { |
| 36 | { XK_BackSpace, "\177" }, | 36 | { XK_BackSpace, "\177" }, |
| 37 | { XK_Insert, "\033[2~" }, | ||
| 37 | { XK_Delete, "\033[3~" }, | 38 | { XK_Delete, "\033[3~" }, |
| 38 | { XK_Home, "\033[1~" }, | 39 | { XK_Home, "\033[1~" }, |
| 39 | { XK_End, "\033[4~" }, | 40 | { XK_End, "\033[4~" }, |
| @@ -50,6 +50,7 @@ st| simpleterm, | |||
| 50 | kcuf1=\E[C, | 50 | kcuf1=\E[C, |
| 51 | kcuu1=\E[A, | 51 | kcuu1=\E[A, |
| 52 | kdch1=\E[3~, | 52 | kdch1=\E[3~, |
| 53 | kich1=\E[2~, | ||
| 53 | kend=\E[4~, | 54 | kend=\E[4~, |
| 54 | kf10=\E[21~, | 55 | kf10=\E[21~, |
| 55 | kf11=\E[23~, | 56 | kf11=\E[23~, |
| @@ -91,9 +92,9 @@ st| simpleterm, | |||
| 91 | xenl, | 92 | xenl, |
| 92 | 93 | ||
| 93 | st-256color| simpleterm with 256 colors, | 94 | st-256color| simpleterm with 256 colors, |
| 95 | use=st, | ||
| 94 | colors#256, | 96 | colors#256, |
| 95 | pairs#32767, | 97 | pairs#32767, |
| 96 | # Nicked from xterm-256color | 98 | # Nicked from xterm-256color |
| 97 | setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m, | 99 | setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m, |
| 98 | setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m, | 100 | setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m, |
| 99 | use=st, | ||
