all repos — st @ 907cb8bfa69926616639f9a19127117b37326029

st (suckless terminal) config

no palette limit (thx Nick)
Aurélien Aptel aurelien.aptel@gmail.com
commit

907cb8bfa69926616639f9a19127117b37326029

parent

9d613092d6698ef41cb7492cdb3214ee9a5ab4d7

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M config.def.hconfig.def.h

@@ -5,7 +5,7 @@ #define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-60-*-*"

#define BORDER 2 #define SHELL "/bin/sh" -/* Terminal colors */ +/* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { "black", "red3",
M st.cst.c

@@ -1541,7 +1541,7 @@ int i, r, g, b;

XColor color; unsigned long white = WhitePixel(xw.dpy, xw.scr); - for(i = 0; i < 16; i++) { + for(i = 0; i < LEN(colorname); i++) { if(!XAllocNamedColor(xw.dpy, xw.cmap, colorname[i], &color, &color)) { dc.col[i] = white; fprintf(stderr, "Could not allocate color '%s'\n", colorname[i]);