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 RequestSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: Cur Dev Sources
Fixed Release: NonePlanned 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 File(s):

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
  • -unavailable- added by amade (Posted a comment)

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 11 Sep 2014 03:12:00 PM UTCamadeStatusNone=>Fixed
    Wed 08 May 2013 05:03:37 PM UTCNoneAttached File-=>Added 0001-Increase-maximum-maxwidth-value-to-511.patch, #28046

    Back to the top

    Powered by Savane 3.1-cleanup1