aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2015-10-05 22:54:44 +0200
committerChristoph Lohmann <20h@r-36.net>2015-10-05 22:54:44 +0200
commit78b04865fb5c8cb841e646058f9a24e7ec9094d2 (patch)
tree2093793463f19d4a0e87896241c0d1e74de47117 /config.def.h
parentf7b80caebe2b96ef65e301634d8dc4e02325e357 (diff)
downloadst-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.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h21
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 */
63static int bellvolume = 0; 63static int bellvolume = 0;
64 64
65/* TERM value */ 65/* default TERM value */
66static char termname[] = "st-256color"; 66static char termname[] = "st-256color";
67 67
68static unsigned int tabspaces = 8; 68static 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) */
72static const char *colorname[] = { 71static 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
117static unsigned int cursorshape = 2; 115static 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;
132static unsigned int defaultitalic = 11; 129static unsigned int defaultitalic = 11;
133static unsigned int defaultunderline = 7; 130static 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 */
137static Mousekey mshortcuts[] = { 136static 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 */
197static uint ignoremod = Mod2Mask|XK_SWITCH_MOD; 196static 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 */
202static uint forceselmod = ShiftMask; 203static 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 */
204static Key key[] = { 209static 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},