command output is erased on resize in certain circumstances {afaict, the circumstances are: scrollback must not exist yet, and the screen reset must hide at least 2 lines}

addtl refs:
https://bugs.launchpad.net/ubuntu/+source/rxvt-unicode/+bug/677425
http://superuser.com/questions/442589/xmonad-urxvt-issue-text-disappears-after-resizing

====
STEPS
1) open urxvt
2) run a command that produces multiline output
e.g.:
> cat out.sh
echo "line1\nline2\nline3\nline4\nline5\nline6\nline7\nline8\nline9"
x=1
d=0.5
while [ 1 ]; do
  echo $x; x=$((x+1)); sleep $d
done
> urxvt -e sh out.sh

3) shrink xwindow quickly with xdotool, restore
e.g.:
> WID=`xdotool search --name sh`; xdotool windowsize $WID 600 100; xdotool windowsize $WID 600 500

4) lines are eaten every time
e.g.:
line 1
line 2
line 3
line 4
15ne 5
16
17

====
DEMO:
https://vid.me/YYNw

====
WORKAROUND:
forcibly re-wrap lines instead of wing
wolke:~/rxvt-unicode/src$ diff screen.C.orig screen.C
308c308
<       if (top_row)
---
>       if (1)
wolke:~/Code/rxvt-unicode/src$ md5sum screen.C.orig
78e428266434098dcda322aad64bd5f7  screen.C.orig

with the above change, lines are never eaten, afaict.

OR just use screen

====
os: debian sid gnu/linux
kernel: 3.18-0
urxvtversion: 9.20
wm: xmonad

also current CVS. also, on every distro, in every WM, since forever afaict


_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to