--- Begin Message ---
Package: libncurses5
Version: 5.5-1
Severity: normal

My apologies if you've seen this already, it vanished into
a black hole the first time I submitted it to the bts,
and I haven't heard from either you or Thomas, after
forwarding a copy directly a couple of days later.
It still hasn't shown up in the bts, so I'm submitting
it again now...


Hi,

I was poking at the use of terminal default colours today and
ran into what looks like a bug in assume_default_colors.

If it is called with neither of its arguments as -1, then
SP->_default_color is set to be false, and consequently
any attempt to use init_pair to define a color pair using
-1 to get the terminal default will fail.

eg.

assume_default_colors( COLOR_RED, COLOR_GREEN );

will set the default colours as specified, but it is then
impossible to init_pair( 1, COLOUR_WHITE, -1 );  or any
similar combination.

It doesn't seem like there is anything that should
fundamentally prohibit that from working, and especially
if assume_default_colors might import its colour values
from the environment it would seem like init_pair should
still work as advertised after a successful call to one
of the *_default_colors functions.

But of course there may be more to this that I miss...

cheers,
Ron


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libncurses5 depends on:
ii  libc6                         2.3.5-7    GNU C Library: Shared libraries an

Versions of packages libncurses5 recommends:
ii  libgpmg1                     1.19.6-21.1 General Purpose Mouse - shared lib

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


--- End Message ---

Reply via email to