diff options
author | Christoph Lohmann <20h@r-36.net> | 2015-10-05 22:54:44 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2015-10-05 22:54:44 +0200 |
commit | 78b04865fb5c8cb841e646058f9a24e7ec9094d2 (patch) | |
tree | 2093793463f19d4a0e87896241c0d1e74de47117 | |
parent | f7b80caebe2b96ef65e301634d8dc4e02325e357 (diff) | |
download | st-patched-78b04865fb5c8cb841e646058f9a24e7ec9094d2.tar.bz2 st-patched-78b04865fb5c8cb841e646058f9a24e7ec9094d2.tar.xz st-patched-78b04865fb5c8cb841e646058f9a24e7ec9094d2.zip |
Style normalisation in the config.def.h.
This adds an awareness commit for the big key array too.
-rw-r--r-- | config.def.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/config.def.h b/config.def.h index 85921dc..342c9d4 100644 --- a/config.def.h +++ b/config.def.h | |||
@@ -62,12 +62,11 @@ static unsigned int cursorthickness = 2; | |||
62 | */ | 62 | */ |
63 | static int bellvolume = 0; | 63 | static int bellvolume = 0; |
64 | 64 | ||
65 | /* TERM value */ | 65 | /* default TERM value */ |
66 | static char termname[] = "st-256color"; | 66 | static char termname[] = "st-256color"; |
67 | 67 | ||
68 | static unsigned int tabspaces = 8; | 68 | static unsigned int tabspaces = 8; |
69 | 69 | ||
70 | |||
71 | /* Terminal colors (16 first used in escape sequence) */ | 70 | /* Terminal colors (16 first used in escape sequence) */ |
72 | static const char *colorname[] = { | 71 | static const char *colorname[] = { |
73 | /* 8 normal colors */ | 72 | /* 8 normal colors */ |
@@ -113,10 +112,8 @@ static unsigned int defaultrcs = 257; | |||
113 | * 4: Underline | 112 | * 4: Underline |
114 | * 6: IBeam | 113 | * 6: IBeam |
115 | */ | 114 | */ |
116 | |||
117 | static unsigned int cursorshape = 2; | 115 | static unsigned int cursorshape = 2; |
118 | 116 | ||
119 | |||
120 | /* | 117 | /* |
121 | * Default colour and shape of the mouse cursor | 118 | * Default colour and shape of the mouse cursor |
122 | */ | 119 | */ |
@@ -132,8 +129,10 @@ static unsigned int mousebg = 0; | |||
132 | static unsigned int defaultitalic = 11; | 129 | static unsigned int defaultitalic = 11; |
133 | static unsigned int defaultunderline = 7; | 130 | static unsigned int defaultunderline = 7; |
134 | 131 | ||
135 | /* Internal mouse shortcuts. */ | 132 | /* |
136 | /* Beware that overloading Button1 will disable the selection. */ | 133 | * Internal mouse shortcuts. |
134 | * Beware that overloading Button1 will disable the selection. | ||
135 | */ | ||
137 | static Mousekey mshortcuts[] = { | 136 | static Mousekey mshortcuts[] = { |
138 | /* button mask string */ | 137 | /* button mask string */ |
139 | { Button4, XK_ANY_MOD, "\031" }, | 138 | { Button4, XK_ANY_MOD, "\031" }, |
@@ -196,11 +195,17 @@ static KeySym mappedkeys[] = { -1 }; | |||
196 | */ | 195 | */ |
197 | static uint ignoremod = Mod2Mask|XK_SWITCH_MOD; | 196 | static uint ignoremod = Mod2Mask|XK_SWITCH_MOD; |
198 | 197 | ||
199 | /* Override mouse-select while mask is active (when MODE_MOUSE is set). | 198 | /* |
199 | * Override mouse-select while mask is active (when MODE_MOUSE is set). | ||
200 | * Note that if you want to use ShiftMask with selmasks, set this to an other | 200 | * Note that if you want to use ShiftMask with selmasks, set this to an other |
201 | * modifier, set to 0 to not use it. */ | 201 | * modifier, set to 0 to not use it. |
202 | */ | ||
202 | static uint forceselmod = ShiftMask; | 203 | static uint forceselmod = ShiftMask; |
203 | 204 | ||
205 | /* | ||
206 | * This is the huge key array which defines all compatibility to the Linux | ||
207 | * world. Please decide about changes wisely. | ||
208 | */ | ||
204 | static Key key[] = { | 209 | static Key key[] = { |
205 | /* keysym mask string appkey appcursor crlf */ | 210 | /* keysym mask string appkey appcursor crlf */ |
206 | { XK_KP_Home, ShiftMask, "\033[2J", 0, -1, 0}, | 211 | { XK_KP_Home, ShiftMask, "\033[2J", 0, -1, 0}, |