Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#13449 - rxvt-256color terminfo file lists only 88 maximum colors, rather than 256

Attached to Project: Arch Linux
Opened by Colin Shea (FriarFoaly) - Wednesday, 25 February 2009, 03:24 GMT
Last edited by Allan McRae (Allan) - Sunday, 15 March 2009, 00:06 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
/usr/share/terminfo/r/rxvt-256color should have max_colors set to 256, rather than the current 88 (as of ncurses-5.7-2). rxvt-unicode-256color from AUR sets the TERM variable to "rxvt-256color", and with the current configuration requires a line to be added to users' ~/.screenrc files to at least get 256 colors working within screen, as well as other configurations (i.e. setting t_Co in ~/.vimrc, etc).

Note that, the terminfo db being incorrect doesn't prevent 256 color support, but ncurses doesn't know about the true number of supported colors. That's why things such as the xterm 256 color test script worked, but `tput colors' outputted something less than 256 (8, 16, 88...)

To check:
$ infocmp -L rxvt-256color | grep "max_colors"
lines_of_memory#0, max_colors#88, max_pairs#256,

To fix (manually):
$ infocmp -L rxvt-256color > /tmp/rxvt-256color.terminfo
$ [editor] /tmp/rxvt-unicode.tmp
Find max_colors, set it to 256
Find max_pairs, set it to 32767
$ tic -o ~/.terminfo /tmp/rxvt-256color.terminfo
$ export TERMINFO="~/.terminfo"

Steps retrieved from http://lists.schmorp.de/pipermail/rxvt-unicode/2008q2/000626.html
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 15 March 2009, 00:06 GMT
Reason for closing:  Works for me
Comment by Allan McRae (Allan) - Monday, 09 March 2009, 04:15 GMT
I can not replicate:

> infocmp -L rxvt-256color | grep "max_colors"
columns#80, init_tabs#8, lines#24, max_colors#256,

> infocmp -L rxvt-88color | grep "max_colors"
columns#80, init_tabs#8, lines#24, max_colors#88,

That looks correct to me...
Comment by Allan McRae (Allan) - Sunday, 15 March 2009, 00:06 GMT
Confirmed works for me on my x86_64 box too

Loading...