+#include "tweak.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <slang.h>
-#include "tweak.h"
-
#if defined(unix) && !defined(GO32)
static int sigwinch (int sigtype)
{
SLsmg_write_nchars(str, len);
}
-void display_define_colour(int colour, int fg, int bg)
+void display_define_colour(int colour, int fg, int bg, int reverse)
{
static char *colours[16] = {
"black", "red", "green", "brown",
};
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]);