bugGNU Screen - Bugs: bug #45321, Visible content get messed up...

 
 

bug #45321: Visible content get messed up after window resize

Submitter:  Sudaraka Wijesinghe <sudaraka>
Submitted:  Mon 15 Jun 2015 07:25:52 AM UTC
   
 
Category:  User Interface Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Fixed
Privacy:  Public Assigned to:  amade
Open/Closed:  Closed Release:  Cur Dev Sources
Fixed Release:  None Planned Release:  4.3.1
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 22 Jun 2015 04:57:04 PM UTC, comment #3: 

Thank you. this commit had fix my issue.

Sudaraka Wijesinghe <sudaraka>
Mon 22 Jun 2015 04:28:07 PM UTC, comment #2: 
Amadeusz Sławiński <amade>
Group administrator
Mon 15 Jun 2015 07:48:31 AM UTC, comment #1: 

For whats it worth, adding the following line removed in the commit 9dc8d7c2008c3c698c2e018c3ec123e6dd622f5e to current HEAD seem to fix the problem I have. But I don't know what other consequences ir might have as I don't know ins and outs of the code.

diff --git a/src/resize.c b/src/resize.c
index d48be5f..f8e771a 100644
--- a/src/resize.c
+++ b/src/resize.c
@@ -534,6 +534,7 @@ int wi;
   int i;
   struct mline *ml;
 
+  wi = ((wi + 1) + 255) & ~255;
   if (wi > MAXWIDTH)
          wi = MAXWIDTH;
   if (wi <= maxwidth)


Sudaraka Wijesinghe <sudaraka>
Mon 15 Jun 2015 07:25:52 AM UTC, original submission:  

With the recent release (4.3.0) when the terminal that is running screen inside it is resized,what ever is visible in the window get all messed up.

I have attached few screen shots:

1.fullscreen-terminal.png - rights after I started screen and it show ls out put correctly.

2. halfscreen-terminal.png - I open a second (GUI web browser) window next to the terminal, and terminal is resized to half of the width before. what was shown in the screen window is now misaligned.

3. expanded-terminal.png - I close the window (web browser) causing the terminal to expand to fullscreen width, and screen window's output is now all shifted to right.

I tracked down the issue on git source tree to commit 9dc8d7c2008c3c698c2e018c3ec123e6dd622f5e, which seem to have changed something related with adjusting of the window width.

Please investigate this issue.

P.s.
I'm running Archlinux with i3wm is that's of any help.

Sudaraka Wijesinghe <sudaraka>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #34222:  expanded-terminal.png added by sudaraka (204KiB - image/png)
file #34221:  halfscreen-terminal.png added by sudaraka (273KiB - image/png)
file #34220:  fullscreen-terminal.png added by sudaraka (211KiB - image/png)

 

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)
  • -email is unavailable- added by sudaraka (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-28 amade Open/ClosedOpen Closed
    2015-06-22 amade StatusNone Fixed
        Assigned toNone amade
        Planned ReleaseNone 4.3.1
    2015-06-15 sudaraka Attached File- Added fullscreen-terminal.png, #34220
        Attached File- Added halfscreen-terminal.png, #34221
        Attached File- Added expanded-terminal.png, #34222

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code