FS#77062 - [rxvt-unicode] half-screen spacing on launch

Attached to Project: Community Packages
Opened by Andrew S. Grigorev (eigrad) - Monday, 09 January 2023, 09:51 GMT
Last edited by Toolybird (Toolybird) - Thursday, 02 November 2023, 20:44 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To George Rawlinson (rawlinsong)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 17
Private No

Details

Description:
After updating to rxvt-unicode-9.31-1 the terminal began to add a 32 blank lines before the first shell prompt on launch. Downgrading to rxvt-unicode-9.30-1 solves the issue.

Additional info:
* Didn't check on the clean system, but tried to disable all possible configs which could interfere.

Steps to reproduce:
* Install rxvt-unicode-9.31-1
* Launch urxvt
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 02 November 2023, 20:44 GMT
Reason for closing:  Upstream
Additional comments about closing:  This is not an Arch packaging issue. The mentioned workaround does help. Please liaise with upstream about a proper fix.
Comment by Toolybird (Toolybird) - Monday, 09 January 2023, 21:27 GMT
Yes, I can kinda replicate in a fresh Xfce4 VM. Launching urxvt results in a small terminal window. Maximizing that window then results in the prompt being half way down the window. Repeating procedure under 9.30 results in prompt at the top of the window as expected. Have you reported upstream?
Comment by Toolybird (Toolybird) - Tuesday, 10 January 2023, 06:49 GMT Comment by Gordon Lenz (cappa) - Tuesday, 10 January 2023, 09:40 GMT
same happen on my mashines after starting a new Window.
both are BSPWM driven.

Comment by Dmitry Denisjuk (dimadenisjuk) - Friday, 13 January 2023, 07:33 GMT
Replicated on I3WM windows manager.
rxvt-unicode-9.30-1 and below: prompt at the top,
rxvt-unicode-9.31-1: prompt at the middle
Comment by Toolybird (Toolybird) - Saturday, 14 January 2023, 21:26 GMT
Dupe  FS#77123 
Comment by Andrew S. Grigorev (eigrad) - Tuesday, 07 March 2023, 23:18 GMT
I can't find appropriate changelog entry, but from the git log it seems that in version 9.31 of rxvt-unicode Marc Lehmann decided to move some lines-rewrap functionality under the ENABLE_FRILLS flag, and slightly updated the related algorithm. Compiling rxvt-unicode with --enable-frills doesn't fix the issue, so it looks like there is a problem with updated algorithm.

Here is a patch for svntogit-community packages/rxvt-unicode branch trunk directory to make a rxvt-unicode package with screen.C changes reverted to 9.30 (this patch contains the screen.C diff for 9.30..9.31 to make a clear vision on changes introduced in 9.31).
Comment by Martin Hertz (mhertz) - Tuesday, 21 March 2023, 20:58 GMT
Same issue on dwm, and fixed by patch by eigrad, thanks!
Comment by Martin Hertz (mhertz) - Wednesday, 22 March 2023, 20:09 GMT
Sorry, just wanted to add that the posted solution in linked report by Toolybird did work also, so patching out line 397 from src/screen.C was enough simply.
Comment by Andrew S. Grigorev (eigrad) - Wednesday, 16 August 2023, 07:19 GMT
There was some info in June from Marc on this behavior - http://lists.schmorp.de/pipermail/rxvt-unicode/2023q2/002662.html.

For me it's still unclear how this should be solved, I continue to stay with 9.31 screen.C changes reverted.
Comment by Martin Hertz (mhertz) - Wednesday, 16 August 2023, 09:41 GMT
Interesting read thanks. Personally I have never seen this happening before this regression talked about here(as link infer), in the decade+ I used this package on arch - only used tiling VMs though, maybe related dunno. I just updated to recheck/post, and same fix worked on newest v9.31-4 i.e. patching out line 397 from src/screen.C, like stated in the posted solution in linked report by Toolybird(though states line 410 there, but regardless). Thanks in advance.
Comment by Toolybird (Toolybird) - Wednesday, 16 August 2023, 22:28 GMT
The geometry hac^H^H^H workaround mentioned in the wiki [1] also works (in some circumstances)

[1] https://wiki.archlinux.org/title/Rxvt-unicode#Wrong_window_geometry
Comment by Martin Hertz (mhertz) - Thursday, 17 August 2023, 09:07 GMT
Thank you so much Toolybird, that works perfectly for me on dwm, seemingly always i.e. just the example line from your wiki link, and i'm sorry for not finding firstly myself. Thanks!
Comment by Boban (boban_dj) - Sunday, 15 October 2023, 14:21 GMT
I have 9.31-4 installed, with i3 window manager. Also in ~/XResources.d/urxvt-unicode added: URxvt.geometry: 400x400.
When opening a new terminal with i3 shortcut, the cursor is on top. Only when moving the window to the right then below, the cursor stays in the middle. The same issue as before.

Loading...