JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
169bcdd3e13cd390a95e25360e109cc1a0f80c62
[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         "#333333",
36 };
37
38 /* Default colors (colorname index)
39    foreground, background, cursor, unfocused cursor */
40 #define DefaultFG  7
41 #define DefaultBG  0
42 #define DefaultCS  16
43 #define DefaultUCS 17
44
45 /* Special keys (change & recompile st.info accordingly)
46    Keep in mind that kpress() in st.c hardcodes some keys.
47
48    Mask value:
49    * Use XK_ANY_MOD to match the key no matter modifiers state
50    * Use XK_NO_MOD to match the key alone (no modifiers)
51    
52       key,        mask,  output */
53 static Key key[] = {
54         { XK_BackSpace, XK_NO_MOD, "\177" },
55         { XK_Insert,    XK_NO_MOD, "\033[2~" },
56         { XK_Delete,    XK_NO_MOD, "\033[3~" },
57         { XK_Home,      XK_NO_MOD, "\033[1~" },
58         { XK_End,       XK_NO_MOD, "\033[4~" },
59         { XK_Prior,     XK_NO_MOD, "\033[5~" },
60         { XK_Next,      XK_NO_MOD, "\033[6~" },
61         { XK_F1,        XK_NO_MOD, "\033OP"   },
62         { XK_F2,        XK_NO_MOD, "\033OQ"   },
63         { XK_F3,        XK_NO_MOD, "\033OR"   },
64         { XK_F4,        XK_NO_MOD, "\033OS"   },
65         { XK_F5,        XK_NO_MOD, "\033[15~" },
66         { XK_F6,        XK_NO_MOD, "\033[17~" },
67         { XK_F7,        XK_NO_MOD, "\033[18~" },
68         { XK_F8,        XK_NO_MOD, "\033[19~" },
69         { XK_F9,        XK_NO_MOD, "\033[20~" },
70         { XK_F10,       XK_NO_MOD, "\033[21~" },
71         { XK_F11,       XK_NO_MOD, "\033[23~" },
72         { XK_F12,       XK_NO_MOD, "\033[24~" },
73 };
74
75 /* Set TERM to this */
76 #define TNAME "st-256color"
77
78 /* Line drawing characters (sometime specific to each font...) */
79 static char gfx[] = {
80         ['f'] = 'o',
81         ['g'] = '+',
82         ['i'] = '#',
83         [255] = 0,
84 };
85
86 /* double-click timeout (in milliseconds) between clicks for selection */
87 #define DOUBLECLICK_TIMEOUT 300
88 #define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT)
89
90 #define TAB 8