config.def.h.rej (854B)
1 --- config.def.h 2 +++ config.def.h 3 @@ -3,11 +3,21 @@ static const char *user = "nobody"; 4 static const char *group = "nogroup"; 5 6 static const char *colorname[NUMCOLS] = { 7 - [INIT] = "black", /* after initialization */ 8 - [INPUT] = "#005577", /* during input */ 9 + [INIT] = "black", /* after initialization */ 10 + [INPUT] = "#005577", /* during input */ 11 [FAILED] = "#CC3333", /* wrong password */ 12 [CAPS] = "red", /* CapsLock on */ 13 }; 14 15 +/* 16 + * Xresources preferences to load at startup 17 + */ 18 +ResourcePref resources[] = { 19 + { "color0", STRING, &colorname[INIT] }, 20 + { "color4", STRING, &colorname[INPUT] }, 21 + { "color1", STRING, &colorname[FAILED] }, 22 + { "color3", STRING, &colorname[CAPS] }, 23 +}; 24 + 25 /* treat a cleared input like a wrong password (color) */ 26 static const int failonclear = 1;