Bug#157093: ncurses-base: xterm-mono is not useable as an xterm without colors
- To: Thomas Dickey <dickey@herndon4.his.com>
- Cc: Jeff Sheinberg <jeffsh@localnet.com>, 157093@bugs.debian.org
- Subject: Bug#157093: ncurses-base: xterm-mono is not useable as an xterm without colors
- From: Sven Rudolph <sr1@sax.sax.de>
- Date: 01 Jan 2003 10:53:08 +0100
- Message-id: <[🔎] 87bs31tcvv.fsf@loom.sax.de>
- Reply-to: Sven Rudolph <sr1@sax.sax.de>, 157093@bugs.debian.org
- References: <20020824213255.GA17404@bloatware.reston01.va.comcast.net> <20020817222154.GA15611@nevyn.them.org> <15710.55824.596655.721273@l1.bsrd.net> <20020818035429.GA26234@nevyn.them.org> <15713.26728.957095.901602@l1.bsrd.net> <20020819222458.GA5192@bloatware.reston01.va.comcast.net> <15713.33769.480767.119689@l1.bsrd.net> <20020819235859.GA9533@bloatware.reston01.va.comcast.net> <15715.58031.887363.422911@l1.bsrd.net> <20020822011218.GA465@bloatware.reston01.va.comcast.net> <15716.15872.601358.34390@l1.bsrd.net>
Thomas Dickey writes:
> I looked at this a little tonight, and think I see the problem. I set
> my LD_LIBRARY_PATH to /usr/lib/debug, set NCURSES_TRACE to trace calls,
> and ran dselect. That makes a 'trace' file in the current directory.
>
> There's a call to wbkgdset() with a garbaged background value:
>
> called {wbkgdset(0x8078f9c,{' ' = 0x20 | {A_STANDOUT|A_ALTCHARSET|A_PROTECT|A...
>
> There are only three calls to this function in dselect, and the one with
> helpscreen_attr does not appear to initialize the value when the program
> is not started on a color terminal.
Based on your diagnosis I created the patch:
*** dpkg-1.10.9.orig/dselect/baselist.cc Mon May 6 18:18:15 2002
--- dpkg-1.10.9/dselect/baselist.cc Wed Jan 1 10:38:14 2003
***************
*** 149,154 ****
--- 149,155 ----
info_attr= list_attr;
info_headattr= A_BOLD;
whatinfo_attr= thisstate_attr;
+ helpscreen_attr= A_NORMAL;
}
// set up windows and pads, based on screen size
This patch fixes the problem for me.
Sven
--
Sven Rudolph <sr1@sax.de> http://www.sax.de/~sr1/
Reply to: