summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-11-21 01:51:15 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2020-11-21 01:51:15 -0500
commitec9e6099839e372f6ff5303e84db325e641e0633 (patch)
tree5210d76255c58d0d01c3ed946a588553b7f34a7b /config.def.h
parentb5c81157067c256f16242b7488b1112e8fa13175 (diff)
Keypress feedback patch and use tiny c compiler
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 d6f0cc3..639a980 100644
--- a/config.def.h
+++ b/config.def.h
@@ -6,11 +6,25 @@ static const char *colorname[NUMCOLS] = {
[INIT] = "black", /* after initialization */
[INPUT] = "#66aabb", /* during input */
[FAILED] = "#cc3333", /* wrong password */
+ [BLOCKS] = "#f2f1f0", /* key feedback block */
};
/* treat a cleared input like a wrong password (color) */
static const int failonclear = 1;
+// ### Blocks bar ###
+static short int blocks_enabled = 1; // 0 = don't show blocks
+static const int blocks_width = 0; // 0 = full width
+static const int blocks_height = 16;
+
+// position
+static const int blocks_x = 0;
+static const int blocks_y = 0;
+
+// Number of blocks
+static const int blocks_count = 10;
+// ### \Blocks bar ###
+
/* time in seconds to cancel lock with mouse movement */
static const int timetocancel = 4;