Xinqi Bao's Git
projects
/
st.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
0a208cb
)
fix insert key, terminfo and changed TERM back to st. (thx Ondrej Martinek)
author
Aurélien Aptel <
[email protected]
>
Sun, 23 Jan 2011 11:30:01 +0000
(12:30 +0100)
committer
Aurélien Aptel <
[email protected]
>
Sun, 23 Jan 2011 11:30:01 +0000
(12:30 +0100)
config.def.h
diff
|
blob
|
history
st.info
diff
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index
b33e9b6
..
ced3000
100644
(file)
--- a/
config.def.h
+++ b/
config.def.h
@@
-1,5
+1,5
@@
#define TAB 8
#define TAB 8
-#define TNAME "
xterm
"
+#define TNAME "
st-256color
"
#define FONT "-*-*-medium-r-*-*-*-120-75-75-*-60-*-*"
#define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-60-*-*"
#define BORDER 2
#define FONT "-*-*-medium-r-*-*-*-120-75-75-*-60-*-*"
#define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-60-*-*"
#define BORDER 2
@@
-34,6
+34,7
@@
static const char *colorname[] = {
/* Special keys */
static Key key[] = {
{ XK_BackSpace, "\177" },
/* Special keys */
static Key key[] = {
{ XK_BackSpace, "\177" },
+ { XK_Insert, "\033[2~" },
{ XK_Delete, "\033[3~" },
{ XK_Home, "\033[1~" },
{ XK_End, "\033[4~" },
{ XK_Delete, "\033[3~" },
{ XK_Home, "\033[1~" },
{ XK_End, "\033[4~" },
diff --git
a/st.info
b/st.info
index
39402eb
..
863c387
100644
(file)
--- a/
st.info
+++ b/
st.info
@@
-50,6
+50,7
@@
st| simpleterm,
kcuf1=\E[C,
kcuu1=\E[A,
kdch1=\E[3~,
kcuf1=\E[C,
kcuu1=\E[A,
kdch1=\E[3~,
+ kich1=\E[2~,
kend=\E[4~,
kf10=\E[21~,
kf11=\E[23~,
kend=\E[4~,
kf10=\E[21~,
kf11=\E[23~,
@@
-91,9
+92,9
@@
st| simpleterm,
xenl,
st-256color| simpleterm with 256 colors,
xenl,
st-256color| simpleterm with 256 colors,
+ use=st,
colors#256,
pairs#32767,
# Nicked from xterm-256color
setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
colors#256,
pairs#32767,
# Nicked from xterm-256color
setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
- use=st,