On Wed, Nov 13, 2019 at 03:00:05PM +0100, Mischa wrote:
> > On 4 Nov 2019, at 16:51, Mischa <obs...@high5.nl> wrote:
> >> On 2 Nov 2019, at 15:19, Hiltjo Posthuma <hil...@codemadness.org> wrote:
> >> On Sat, Nov 02, 2019 at 08:32:50AM +0100, Mischa wrote:
> >>> Hi All,
> >>> 
> >>> Not sure if this is on my side, setting, or if something has changed with 
> >>> tmux or top redrawing of the terminal.
> >>> I am using tmux, over mosh, on one of my jump hosts to connect to other 
> >>> hosts. In some of the windows I have a remote top -C running.
> >>> When I am attaching the tmux session on a smaller display, for example my 
> >>> phone, the output of top is fine.
> >>> 
> >>> However when I connect back with a larger display the output of top is 
> >>> completely garbled. It does recover line by line when processes jump to a 
> >>> different “rank”.
> >>> 
> >>> Below are two screenshots with roughly 5 minutes between them.
> >>> Anything I can test? Change? Do?
> >>> 
> >>> Thanx!!
> >>> 
> >>> Mischa
> >>> 
> >> 
> >> Hi,
> >> 
> >> Same issue here since upgrading from 6.5 to 6.6.
> >> 
> >> I don't use mosh, but connect via SSH to a remote machine and attaching to 
> >> tmux
> >> running irssi.  It is attached to a shared session. The first attached
> >> resolution/window size is bigger.
> >> 
> >> Maybe it is fixed already:
> >> https://cvsweb.openbsd.org/src/usr.bin/tmux/server-client.c
> >> rev 1.296
> > 
> > Thanx! Will check it out.
> 
> With -current I am still seeing the issue. Anybody else?
> 
> Mischa
> 
> 

Hey Mischa,

Assuming we have the same issue: I have bisected my issue to this commit now:

https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/tmux/server-client.c.diff?r1=1.293&r2=1.294
server-client.c Revision 1.294, Wed Aug 28 07:34:32 2019 UTC

It can be reproduced now also in a local single tmux session with these steps:

- Start tmux.
- C-b c (new window).
- Start top -C -s 1 in one window.
- Let top refresh one second.
- Switch to the other tmux window.
- Resize the client in some way.
- Wait a second for top to redraw.
- Switch back to the window that is running top.
- The text is not drawn correctly.

In practise this happens for me when irssi redraws its contents in a similar
way.

I'll try to figure out a patch, but can you confirm if reverting this commit
also fixes your issue?

-- 
Kind regards,
Hiltjo

Reply via email to