Xinqi Bao's Git
projects
/
st.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
9d61309
)
no palette limit (thx Nick)
author
Aurélien Aptel <
[email protected]
>
Thu, 6 Oct 2011 19:32:34 +0000
(21:32 +0200)
committer
Aurélien Aptel <
[email protected]
>
Thu, 6 Oct 2011 19:32:34 +0000
(21:32 +0200)
config.def.h
diff
|
blob
|
history
st.c
diff
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index
37f9620
..
35f36cb
100644
(file)
--- a/
config.def.h
+++ b/
config.def.h
@@
-5,7
+5,7
@@
#define BORDER 2
#define SHELL "/bin/sh"
#define BORDER 2
#define SHELL "/bin/sh"
-/* Terminal colors */
+/* Terminal colors
(16 first used in escape sequence)
*/
static const char *colorname[] = {
"black",
"red3",
static const char *colorname[] = {
"black",
"red3",
diff --git
a/st.c
b/st.c
index
6594aa3
..
72e57c8
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-1541,7
+1541,7
@@
xloadcols(void) {
XColor color;
unsigned long white = WhitePixel(xw.dpy, xw.scr);
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]);
if(!XAllocNamedColor(xw.dpy, xw.cmap, colorname[i], &color, &color)) {
dc.col[i] = white;
fprintf(stderr, "Could not allocate color '%s'\n", colorname[i]);