Introduction
Introduction Statistics Contact Development Disclaimer Help
tno palette limit (thx Nick) - st - [fork] customized build of st, the simple t…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 907cb8bfa69926616639f9a19127117b37326029
parent 9d613092d6698ef41cb7492cdb3214ee9a5ab4d7
Author: AurĂ©lien Aptel <[email protected]>
Date: Thu, 6 Oct 2011 21:32:34 +0200
no palette limit (thx Nick)
Diffstat:
M config.def.h | 2 +-
M st.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/config.def.h b/config.def.h
t@@ -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
t@@ -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, &c…
dc.col[i] = white;
fprintf(stderr, "Could not allocate color '%s'\n", col…
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.