bugGNU Screen - Bugs: bug #38940, Increase maximum maxwidth value to...


bug #38940: Increase maximum maxwidth value to 511

Submitted by:  None
Submitted on:  Wed 08 May 2013 05:03:37 PM UTC  
Category:  Feature Request Severity:  3 - Normal
Priority:  5 - Normal Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  Cur Dev Sources
Fixed Release:  None Planned Release:  None
Work Required:  None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 11 Sep 2014 03:12:00 PM UTC, comment #1:

Thanks for report, should be fixed by:


Amadeusz Sławiński <amade>
Project Administrator
Wed 08 May 2013 05:03:37 PM UTC, original submission:

I noticed a problem while playing around with the hardstatus option of .screenrc. When trying to use the %= option, I found that "right-aligned" text was aligning 15 columns to the left of where the right boundary should have been. My terminal size was 270 columns wide, and so this turns out to be exactly 255 characters.

I see in resize.c the line

wi = ((wi + 1) + 255) & ~255;

I believe increasing 255 to 511 is a reasonable solution to this problem. I have attached my suggestion for patching this file.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #28046:  0001-Increase-maximum-maxwidth-value-to-511.patch added by None (1KiB - application/octet-stream - Attaching my suggested patch for the problem.)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by amade (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-11 amade StatusNone => Fixed
        Open/ClosedOpen => Closed
    2013-05-08 None Attached File- => Added 0001-Increase-maximum-maxwidth-value-to-511.patch, #28046

    Back to the top

    Powered by Savane 3.3