aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2011-10-06 21:32:34 +0200
committerAurélien Aptel <aurelien.aptel@gmail.com>2011-10-06 21:32:34 +0200
commit7c350025b23ef88d42d49ba52be8a5ea44a9928a (patch)
treec6fe8e07587c294e36f440409b89c3270dd61d14
parent4a421ffbbcfbe0868f9364d346e5ce519a65a0db (diff)
downloadst-7c350025b23ef88d42d49ba52be8a5ea44a9928a.tar.gz
st-7c350025b23ef88d42d49ba52be8a5ea44a9928a.tar.bz2
no palette limit (thx Nick)
-rw-r--r--config.def.h2
-rw-r--r--st.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 37f9620..35f36cb 100644
--- a/config.def.h
+++ b/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",
diff --git a/st.c b/st.c
index 6594aa3..72e57c8 100644
--- a/st.c
+++ b/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]);