default: rxvt (mine, which tries to simulate linux tty)
[k8sterm.git] / src / config.h
blob0f8d1ee855a24dd1dd4781895b1d47ec32854b7c
1 #ifndef STERM_CONFIG_H
2 #define STERM_CONFIG_H
5 #define UNDERLINE_COLORED
8 /*
9 #define FONT "-*-*-medium-r-*-*-*-120-75-75-*-60-*-*"
10 #define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-60-*-*"
14 #define FONT "-*-terminus-bold-*-*--20-*-*-*-*-*-koi8-u"
15 #define BOLDFONT "-*-terminus-bold-*-*--20-*-*-*-*-*-koi8-u"
18 /* Space in pixels around the terminal buffer */
19 #define BORDER (0)
22 /* Default shell to use if SHELL is not set in the env */
23 #define SHELL "/bin/sh"
26 /* Terminal colors (16 first used in escape sequence) */
27 static const char *colorname[] = {
28 #if 0
29 /* 8 normal colors */
30 "black",
31 "red3",
32 "green3",
33 "yellow3",
34 "blue2",
35 "magenta3",
36 "cyan3",
37 "gray90",
38 /* 8 bright colors */
39 "gray50",
40 "red",
41 "green",
42 "yellow",
43 "#5c5cff",
44 "magenta",
45 "cyan",
46 "white",
47 [255] = 0,
48 /* more colors can be added after 255 to use with DefaultXX */
49 "#cccccc",
50 "#333333",
51 #else
52 /* 8 normal colors */
53 "#000000",
54 "#b21818",
55 "#18b218",
56 "#b26818",
57 "#1818b2",
58 "#b218b2",
59 "#18b2b2",
60 "#b2b2b2",
61 /* 8 bright colors */
62 "#686868",
63 "#ff5454",
64 "#54ff54",
65 "#ffff54",
66 "#5454ff",
67 "#ff54ff",
68 "#54ffff",
69 "#ffffff",
70 [255] = 0,
71 /* more colors can be added after 255 to use with DefaultXX */
72 "#cccccc", /* 256 */
73 "#333333", /* 257 */
74 /* root terminal fg and bg */
75 "#809a70", /* 258 */
76 "#002000", /* 259 */
77 /* bold and underline */
78 "#00afaf", /* 260 */
79 "#00af00", /* 261 */
80 #endif
84 /* Default colors (colorname index) foreground, background, cursor, unfocused cursor */
85 #define DefaultFG (7)
86 #define DefaultBG (0)
87 #define DefaultCS (256)
88 #define DefaultUCS (257)
90 #define DefaultBoldFG (260)
91 #define DefaultULFG (261)
94 /* Special keys (change & recompile st.info accordingly)
95 Keep in mind that kpress() in st.c hardcodes some keys.
97 Mask value:
98 * Use XK_ANY_MOD to match the key no matter modifiers state
99 * Use XK_NO_MOD to match the key alone (no modifiers)
101 key, mask, output */
102 static const Key key[] = {
103 { XK_BackSpace, XK_NO_MOD, "\177" },
104 { XK_Insert, XK_NO_MOD, "\033[2~" },
105 { XK_Delete, XK_NO_MOD, "\033[3~" },
106 { XK_Home, XK_NO_MOD, "\033[1~" },
107 { XK_End, XK_NO_MOD, "\033[4~" },
108 { XK_Prior, XK_NO_MOD, "\033[5~" },
109 { XK_Next, XK_NO_MOD, "\033[6~" },
110 { XK_F1, XK_NO_MOD, "\033OP" },
111 { XK_F2, XK_NO_MOD, "\033OQ" },
112 { XK_F3, XK_NO_MOD, "\033OR" },
113 { XK_F4, XK_NO_MOD, "\033OS" },
114 { XK_F5, XK_NO_MOD, "\033[15~" },
115 { XK_F6, XK_NO_MOD, "\033[17~" },
116 { XK_F7, XK_NO_MOD, "\033[18~" },
117 { XK_F8, XK_NO_MOD, "\033[19~" },
118 { XK_F9, XK_NO_MOD, "\033[20~" },
119 { XK_F10, XK_NO_MOD, "\033[21~" },
120 { XK_F11, XK_NO_MOD, "\033[23~" },
121 { XK_F12, XK_NO_MOD, "\033[24~" },
123 { XK_Home, ControlMask, "\033[1^" },
124 { XK_Insert, ControlMask, "\033[2^" },
125 { XK_Delete, ControlMask, "\033[3^" },
126 { XK_End, ControlMask, "\033[4^" },
127 { XK_Prior, ControlMask, "\033[5^" },
128 { XK_Next, ControlMask, "\033[6^" },
132 /* Set TERM to this */
133 /*#define TNAME "st-256color"*/
134 /*#define TNAME "xterm"*/
135 #define TNAME "rxvt"
138 /* Line drawing characters (sometime specific to each font...) */
140 static char gfx[] = {
141 ['f'] = 'o',
142 ['g'] = '+',
143 ['i'] = '#',
144 [255] = 0,
148 /* double-click timeout (in milliseconds) between clicks for selection */
149 #define DOUBLECLICK_TIMEOUT (300)
150 #define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT)
152 #define TAB (8)
155 #endif