Xinqi Bao's Git

f1bd91ea8956d3a81cc9f1026ec7b43b93a15674
[st.git] / config.def.h
1
2 #define FONT "-*-*-medium-r-*-*-*-120-75-75-*-60-*-*"
3 #define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-60-*-*"
4
5 /* Space in pixels around the terminal buffer */
6 #define BORDER 2
7
8 /* Default shell to use if SHELL is not set in the env */
9 #define SHELL "/bin/sh"
10
11 /* Terminal colors (16 first used in escape sequence) */
12 static const char *colorname[] = {
13 /* 8 normal colors */
14 "black",
15 "red3",
16 "green3",
17 "yellow3",
18 "blue2",
19 "magenta3",
20 "cyan3",
21 "gray90",
22
23 /* 8 bright colors */
24 "gray50",
25 "red",
26 "green",
27 "yellow",
28 "#5c5cff",
29 "magenta",
30 "cyan",
31 "white",
32
33 /* more colors can be added to use with DefaultXX */
34 "#cccccc",
35 };
36
37 /* Default colors (colorname index)
38 foreground, background, cursor */
39 #define DefaultFG 7
40 #define DefaultBG 0
41 #define DefaultCS 16
42
43 /* Special keys (change & recompile st.info accordingly)
44 Keep in mind that kpress() in st.c hardcodes some keys.
45
46 Mask value:
47 * Use XK_ANY_MOD to match the key no matter modifiers state
48 * Use XK_NO_MOD to match the key alone (no modifiers)
49
50 key, mask, output */
51 static Key key[] = {
52 { XK_BackSpace, XK_NO_MOD, "\177" },
53 { XK_Insert, XK_NO_MOD, "\033[2~" },
54 { XK_Delete, XK_NO_MOD, "\033[3~" },
55 { XK_Home, XK_NO_MOD, "\033[1~" },
56 { XK_End, XK_NO_MOD, "\033[4~" },
57 { XK_Prior, XK_NO_MOD, "\033[5~" },
58 { XK_Next, XK_NO_MOD, "\033[6~" },
59 { XK_F1, XK_NO_MOD, "\033OP" },
60 { XK_F2, XK_NO_MOD, "\033OQ" },
61 { XK_F3, XK_NO_MOD, "\033OR" },
62 { XK_F4, XK_NO_MOD, "\033OS" },
63 { XK_F5, XK_NO_MOD, "\033[15~" },
64 { XK_F6, XK_NO_MOD, "\033[17~" },
65 { XK_F7, XK_NO_MOD, "\033[18~" },
66 { XK_F8, XK_NO_MOD, "\033[19~" },
67 { XK_F9, XK_NO_MOD, "\033[20~" },
68 { XK_F10, XK_NO_MOD, "\033[21~" },
69 { XK_F11, XK_NO_MOD, "\033[23~" },
70 { XK_F12, XK_NO_MOD, "\033[24~" },
71 };
72
73 /* Set TERM to this */
74 #define TNAME "st-256color"
75
76 /* Line drawing characters (sometime specific to each font...) */
77 static char gfx[] = {
78 ['f'] = 'o',
79 ['g'] = '+',
80 ['i'] = '#',
81 [255] = 0,
82 };
83
84 /* double-click timeout (in milliseconds) between clicks for selection */
85 #define DOUBLECLICK_TIMEOUT 300
86 #define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT)
87
88 #define TAB 8