aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-05-31 14:56:25 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-05-31 14:56:25 -0700
commitca9ff7e94177388a73842713ff37a84fd3eaad53 (patch)
treeb2ed9455d95d0d46c6537be9bfa3bd967a9b790b /config.def.h
parent06fa2d5b3c4aae1e833cbedbecabbf924789c7c7 (diff)
Moved colwidths to config
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 816e660..fcf0838 100644
--- a/config.def.h
+++ b/config.def.h
@@ -91,6 +91,8 @@ typedef struct {
// These commands will run at startup (before command-line arguments)
extern const char *startupcmds[];
+extern const int colwidths[128];
+
const char *startupcmds[] = {
//////////////////////////////////////////////
// User-defined startup commands can go here
@@ -103,6 +105,18 @@ const char *startupcmds[] = {
NULL, // NULL-terminated array
};
+// Column widths:
+const int colwidths[128] = {
+ ['*'] = 2,
+ ['s'] = 9,
+ ['m'] = 21,
+ ['a'] = 21,
+ ['c'] = 21,
+ ['p'] = 5,
+ ['n'] = 40,
+ ['r'] = 2,
+};
+
#ifdef __APPLE__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"