Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224521 - app-misc/screen-4.0.3: Limit of caption/hardstatus rendition changes too low (incl. fix)
Summary: app-misc/screen-4.0.3: Limit of caption/hardstatus rendition changes too low ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Sven Wegener
URL: http://savannah.gnu.org/bugs/?22146
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-01 19:50 UTC by Troy
Modified: 2008-06-07 19:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Troy 2008-06-01 19:50:50 UTC
Since upstream's development is becoming pathetic at a rapid rate, would Gentoo include a patch to modify the constant MAX_WINMSG_REND to something higher than 16, 64 perhaps? This is declared on line 2088 (or so) of screen.c.

static char winmsg_buf[MAXSTR];
#define MAX_WINMSG_REND 16      /* rendition changes */
static int winmsg_rend[MAX_WINMSG_REND];

Why is this important you might wonder? Well, everyone knows how we Gentoo users enjoy pimping our computing experience to the max. To achieve maximum pimpage, our .screenrc caption and hardstatus lines must include plenty of room for color changing!

proof of concept:
caption always "%{= kw}%{c}abc %{B}abc %{m}abc %{r}abc %{y}abc %{C}abc %{R}abc %{C}abc %{Y}abc %{B}abc %{r}abc %{c}abc %{g}abc %{w}abc %{G}abc %{b}abc %{Y}abc %{r}abc"

Notice how the colors stop changing after a while...

editing MAX_WINMSG_REND will fix this. 

Reproducible: Always

Steps to Reproduce:
1. Put the above caption line in your .screenrc
2. start screen
3. observe how the colors don't change after a while

Actual Results:  
Colors towards the end max out the rendition change stack.

Expected Results:  
Colors for every "abc" should be different than the one before.

None needed. This is a simple bug, and simple to fix.
Comment 1 Sven Wegener gentoo-dev 2008-06-07 19:15:10 UTC
changed to 64