(wrong string) élien Aptel
changeset: 215:704261718508
tag: tip
user: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
date: Thu Oct 06 21:32:34 2011 +0200
files: config.def.h st.c
description:
no palette limit (thx Nick)
diff -r 33577294b822 -r 704261718508 config.def.h
--- a/config.def.h Thu Sep 22 10:04:58 2011 +0200
+++ b/config.def.h Thu Oct 06 21:32:34 2011 +0200
_AT_@ -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 -r 33577294b822 -r 704261718508 st.c
--- a/st.c Thu Sep 22 10:04:58 2011 +0200
+++ b/st.c Thu Oct 06 21:32:34 2011 +0200
_AT_@ -1541,7 +1541,7 @@
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]);
Received on Sat Oct 08 2011 - 13:54:10 CEST
This archive was generated by hypermail 2.3.0
: Sat Oct 08 2011 - 14:00:08 CEST