mosh style screen refresh?

33 views
Skip to first unread message

Roger Pack

unread,
Jan 25, 2022, 3:00:52 PM1/25/22
to tmux-users
As a note, when using tmux on a "slow connection" and you "accidentally cat" a large file, it can take minutes for it to catch up to your Ctrl+C, etc.  

Maybe tmux could add an option "only refresh the viewable window" or something similar to mosh, to make "lots of output" fast on slow connections?  Just a thought, cheers!

Nicholas Marriott

unread,
Jan 26, 2022, 8:36:59 AM1/26/22
to Roger Pack, tmux-users
How old is your tmux?

On Tue, 25 Jan 2022 at 20:00, Roger Pack <rogerp...@gmail.com> wrote:
As a note, when using tmux on a "slow connection" and you "accidentally cat" a large file, it can take minutes for it to catch up to your Ctrl+C, etc.  

Maybe tmux could add an option "only refresh the viewable window" or something similar to mosh, to make "lots of output" fast on slow connections?  Just a thought, cheers!

--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/1f204935-7ec5-4099-aa1c-01ed1b8257ffn%40googlegroups.com.

Roger Pack

unread,
Jan 26, 2022, 11:07:44 AM1/26/22
to Nicholas Marriott, tmux-users
On Wed, Jan 26, 2022 at 6:36 AM Nicholas Marriott <nicholas...@gmail.com> wrote:
How old is your tmux?

I don't see a "--version" option, but package says:

tmux.x86_64                                                                                          1.8-4.el7                                                                                     


Thanks!

Roger Pack

unread,
Jan 26, 2022, 11:19:00 AM1/26/22
to Nicholas Marriott, tmux-users

$ tmux -V

tmux 1.8


On Wed, Jan 26, 2022 at 9:17 AM Nicholas Marriott <nicholas...@gmail.com> wrote:
-V or use your package manager to find the actual version.

Nicholas Marriott

unread,
Jan 26, 2022, 11:48:58 AM1/26/22
to Roger Pack, tmux-users
Your tmux is extremely old, try a newer version.

Roger Pack

unread,
Jan 27, 2022, 6:21:23 PM1/27/22
to tmux-users
OK I tried with git master, it does seem to redraw the screen, but still is not as responsive as mosh, where ctrl+c's come through almost immediately.  FWIW.

Nicholas Marriott

unread,
Jan 27, 2022, 6:50:05 PM1/27/22
to Roger Pack, tmux-users
mosh has 1) a client and server at each end of the connection and 2) one writer and one reader. this means it doesn't have the same limitations as tmux

in any case is a compromise between speed and responsiveness, within the limits we have. we could probably make ^c more responsive but it would make output slower in the case where you don't press ^c



Scott Rochford

unread,
Jan 27, 2022, 9:05:15 PM1/27/22
to Nicholas Marriott, Roger Pack, tmux-users
Hi Roger,

There's nothing stopping you from using tmux through mosh, this is how I use it every day for work.

Also, the  packages for tmux included with RHEL/CentOS are notoriously outdated.  I maintain a repository of the latest tmux release which you can use to stay up-to-date if you wish:


Regards,

Scott

Reply all
Reply to author
Forward
0 new messages