~mdw
/
sgt
/
tweak
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tweak was incorrectly handling the terminal default colour scheme.
[sgt/tweak]
/
slang.c
diff --git
a/slang.c
b/slang.c
index
0dca727
..
a6e0b37
100644
(file)
--- a/
slang.c
+++ b/
slang.c
@@
-119,6
+119,12
@@
void display_define_colour(int colour, int fg, int bg)
};
char cname[40];
+ if (fg < 0 && bg < 0) {
+ /* FIXME: not sure how to support terminal default fg+bg */
+ fg = 7;
+ bg = 0;
+ }
+
sprintf(cname, "colour%d", colour);
SLtt_set_color(colour, cname, colours[fg], colours[bg]);