From cc6580eb851d8366cf0323d9aa5fc304e0480db3 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 21 May 2003 22:02:37 +0000 Subject: [PATCH] When no color is detected on Unix, use highlight instead of inverse lightbar. --- src/uifc/uifc32.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c index 2f139288ae..1f99feab4a 100644 --- a/src/uifc/uifc32.c +++ b/src/uifc/uifc32.c @@ -82,7 +82,7 @@ enum { #define BLINK 128 -static char hfclr,hbclr,hclr,lclr,bclr,cclr,lbclr; +static char hclr,lclr,bclr,cclr,lbclr; static int cursor; static char* helpfile=0; static uint helpline=0; @@ -246,17 +246,19 @@ int uifcini32(uifcapi_t* uifcapi) hclr=WHITE; lclr=LIGHTGRAY; cclr=LIGHTGRAY; - hbclr=BLACK; /* Highlight Background Colour */ - hfclr=WHITE; /* Highlight Foreground Colour */ +#ifdef __unix__ + if(txtinfo.currmode==MONO) + lbclr=WHITE|(BLACK<<4); /* no color on curses means no inverse either */ + else +#endif + lbclr=BLACK|(LIGHTGRAY<<4); /* lightbar color */ } else { bclr=BLUE; hclr=YELLOW; lclr=WHITE; cclr=CYAN; - hbclr=LIGHTGRAY; - hfclr=YELLOW; + lbclr=BLUE|(LIGHTGRAY<<4); /* lightbar color */ } - lbclr=bclr|(LIGHTGRAY<<4); /* lightbar color */ for(i=0;i<MAX_BFLN;i+=2) { blk_scrn[i]='�'; -- GitLab