Also, <setaf> is wrong for dark gray. It assumes dim is mapped to dark
gray, but tput reset and tput oc do not enforce this, and .e.g Ubuntu
defaults to a different mapping (cyan?) for this attribute. Worse, in some
console drivers (fbcon?) the "dim" and "underline" attribute color mappings
are conflated. In others (e.g. vga) they are separated as documented in
console_codes(4).
The fix is to just use bright black for gray, which works reliably:
setaf=\E[3%p1%{8}%m%d%?%p1%{7}%>%t;1%e;21%;m,
On Wed, Mar 20, 2013 at 5:20 PM, Ben Wiley Sittler
<[email protected]>wrote:
> A further correction: it should be ncv#63 to exclude standout too, since
> standout is implemented using reverse-video. Also, <setab> is buggy. It
> tries to use dim in conjunction with black to achieve dark grey as a
> background, but this actually only works for a dark gray foreground. A
> correct <setab> would be:
>
> setab=\E[4%p1%{8}%m%d%?%p1%{7}%>%t;5%e;25%;m,
>
>
> The previous <setab> also failed to clear a previous blink when setting a
> dark gray background, causing inconsistent behavior.
>
> On Sat, Mar 16, 2013 at 3:33 PM, Ben Wiley Sittler <[email protected]>wrote:
>
>> My mistake, it should be ncv#62 to exclude <blink>, since that's how
>> bright background colors are achieved.
>>
>>
>> On Sat, Mar 16, 2013 at 3:28 PM, Ben Wiley Sittler <[email protected]>wrote:
>>
>>> Sorry, my mistake!
>>>
>>>
>>> On Sat, Mar 16, 2013 at 1:19 PM, Thomas Dickey <[email protected]> wrote:
>>>
>>>> I'm confused by your comment, since the linux-16color entry does use
>>>> ncv#54
>>>>
>>>> --
>>>> You received this bug notification because you are subscribed to the bug
>>>> report.
>>>> https://bugs.launchpad.net/bugs/438413
>>>>
>>>> Title:
>>>> init_color (and the <initc> capability) for terminal type "linux"
>>>> fails when red, green and/or blue is set to the maximum value (1000)
>>>>
>>>> To manage notifications about this bug go to:
>>>>
>>>> https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/438413/+subscriptions
>>>>
>>>
>>>
>>
>
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/438413
Title:
init_color (and the <initc> capability) for terminal type "linux"
fails when red, green and/or blue is set to the maximum value (1000)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/438413/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs