diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2012-02-15 19:11:07 +0100 |
---|---|---|
committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2012-02-15 19:11:07 +0100 |
commit | 62d380947ee9fb8a1d5678985b1a729cfd4310b4 (patch) | |
tree | 9c99ebdce07e6d1038fb0dad28a0e273887c6963 | |
parent | 5705e5dfd16fab78ce3dd91663e5fff8073e1595 (diff) | |
download | st-patched-62d380947ee9fb8a1d5678985b1a729cfd4310b4.tar.bz2 st-patched-62d380947ee9fb8a1d5678985b1a729cfd4310b4.tar.xz st-patched-62d380947ee9fb8a1d5678985b1a729cfd4310b4.zip |
document possible configuration.
-rw-r--r-- | config.def.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h index 35f36cb..f1bd91e 100644 --- a/config.def.h +++ b/config.def.h | |||
@@ -1,12 +1,16 @@ | |||
1 | #define TAB 8 | 1 | |
2 | #define TNAME "st-256color" | ||
3 | #define FONT "-*-*-medium-r-*-*-*-120-75-75-*-60-*-*" | 2 | #define FONT "-*-*-medium-r-*-*-*-120-75-75-*-60-*-*" |
4 | #define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-60-*-*" | 3 | #define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-60-*-*" |
4 | |||
5 | /* Space in pixels around the terminal buffer */ | ||
5 | #define BORDER 2 | 6 | #define BORDER 2 |
7 | |||
8 | /* Default shell to use if SHELL is not set in the env */ | ||
6 | #define SHELL "/bin/sh" | 9 | #define SHELL "/bin/sh" |
7 | 10 | ||
8 | /* Terminal colors (16 first used in escape sequence) */ | 11 | /* Terminal colors (16 first used in escape sequence) */ |
9 | static const char *colorname[] = { | 12 | static const char *colorname[] = { |
13 | /* 8 normal colors */ | ||
10 | "black", | 14 | "black", |
11 | "red3", | 15 | "red3", |
12 | "green3", | 16 | "green3", |
@@ -15,6 +19,8 @@ static const char *colorname[] = { | |||
15 | "magenta3", | 19 | "magenta3", |
16 | "cyan3", | 20 | "cyan3", |
17 | "gray90", | 21 | "gray90", |
22 | |||
23 | /* 8 bright colors */ | ||
18 | "gray50", | 24 | "gray50", |
19 | "red", | 25 | "red", |
20 | "green", | 26 | "green", |
@@ -22,14 +28,17 @@ static const char *colorname[] = { | |||
22 | "#5c5cff", | 28 | "#5c5cff", |
23 | "magenta", | 29 | "magenta", |
24 | "cyan", | 30 | "cyan", |
25 | "white" | 31 | "white", |
32 | |||
33 | /* more colors can be added to use with DefaultXX */ | ||
34 | "#cccccc", | ||
26 | }; | 35 | }; |
27 | 36 | ||
28 | /* Default colors (colorname index) | 37 | /* Default colors (colorname index) |
29 | foreground, background, cursor */ | 38 | foreground, background, cursor */ |
30 | #define DefaultFG 7 | 39 | #define DefaultFG 7 |
31 | #define DefaultBG 0 | 40 | #define DefaultBG 0 |
32 | #define DefaultCS 1 | 41 | #define DefaultCS 16 |
33 | 42 | ||
34 | /* Special keys (change & recompile st.info accordingly) | 43 | /* Special keys (change & recompile st.info accordingly) |
35 | Keep in mind that kpress() in st.c hardcodes some keys. | 44 | Keep in mind that kpress() in st.c hardcodes some keys. |
@@ -61,6 +70,9 @@ static Key key[] = { | |||
61 | { XK_F12, XK_NO_MOD, "\033[24~" }, | 70 | { XK_F12, XK_NO_MOD, "\033[24~" }, |
62 | }; | 71 | }; |
63 | 72 | ||
73 | /* Set TERM to this */ | ||
74 | #define TNAME "st-256color" | ||
75 | |||
64 | /* Line drawing characters (sometime specific to each font...) */ | 76 | /* Line drawing characters (sometime specific to each font...) */ |
65 | static char gfx[] = { | 77 | static char gfx[] = { |
66 | ['f'] = 'o', | 78 | ['f'] = 'o', |
@@ -72,3 +84,5 @@ static char gfx[] = { | |||
72 | /* double-click timeout (in milliseconds) between clicks for selection */ | 84 | /* double-click timeout (in milliseconds) between clicks for selection */ |
73 | #define DOUBLECLICK_TIMEOUT 300 | 85 | #define DOUBLECLICK_TIMEOUT 300 |
74 | #define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT) | 86 | #define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT) |
87 | |||
88 | #define TAB 8 | ||