commit 7c350025b23ef88d42d49ba52be8a5ea44a9928a from: Aurélien Aptel date: Thu Oct 6 19:32:34 2011 UTC no palette limit (thx Nick) commit - 4a421ffbbcfbe0868f9364d346e5ce519a65a0db commit + 7c350025b23ef88d42d49ba52be8a5ea44a9928a blob - 37f962053826ed0daa8924bfac649f2113897c66 blob + 35f36cb6ce112da1c114c0504865b1dc62ec078f --- config.def.h +++ config.def.h @@ -5,7 +5,7 @@ #define BORDER 2 #define SHELL "/bin/sh" -/* Terminal colors */ +/* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { "black", "red3", blob - 6594aa3bd1cc5f7e10b5b37841fbf82b6bde0c8e blob + 72e57c8f73a868fc7871429b3ed22ddd17b21bcb --- st.c +++ st.c @@ -1541,7 +1541,7 @@ xloadcols(void) { 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]);