5 #define UNDERLINE_COLORED
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 */
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
[] = {
48 /* more colors can be added after 255 to use with DefaultXX */
71 /* more colors can be added after 255 to use with DefaultXX */
74 /* root terminal fg and bg */
77 /* bold and underline */
84 /* Default colors (colorname index) foreground, background, cursor, unfocused cursor */
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.
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)
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"*/
138 /* Line drawing characters (sometime specific to each font...) */
140 static char gfx[] = {
148 /* double-click timeout (in milliseconds) between clicks for selection */
149 #define DOUBLECLICK_TIMEOUT (300)
150 #define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT)