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