tmux - stop terminal output?

588 views
Skip to first unread message

michael

unread,
Mar 22, 2012, 9:39:36 AM3/22/12
to iterm2-...@googlegroups.com
I encountered the following problem, which I'm not sure is possible to solve in iTerm2.

When I attach to a tmux session, and something prints a lot of text, it is very hard to stop text output. (with ctrl-C)

I think what happens is this: If I just connect remotely with ssh, and print a lot, then the connection is fairly slow, and I can quickly press ctrl-C before too much text has arrived at my end.
With tmux, text is sent to the tmux session, whicih is right on the computer, so lots of text can be sent to the session. Then when I press ctrl-C, tmux is still sending all the text to iTerm2 to update the screen, and it seems my ctrl-C had to wait in line till all the text has been sent.
While this is happening, all other windows are also not very responsive, because lots of data is sent across.

Wile this is happening, I think I also can't close the window or detach...

If iTerm2 wasn't connected to the session at the time when all the text is sent, and then attaches afterwards, I think it would get only the last screen of data, not the full blast.

I'm not sure how one can solve this. Maybe one can send to tmux - stop updating this window? Or Maybe close this window?

I'm also not sure where the problem is. I just tried to print a lot of data, then go to tmux in another ssh and tell it to close the window, which it seems to have done. But output was still pouring in the iTerm2 window. It was probably still buffering either in iTerm2 or on the connection (?)...

Thanks!
Michael

P.S. there used to be a control code ctrl-o, which I've never seen implemented, which says - discard output to the terminal. That would be useful here....

George Nachman

unread,
Mar 23, 2012, 11:48:46 AM3/23/12
to iterm2-...@googlegroups.com
Interesting problem. I'll see if I can reproduce it... if the network is so clogged that nothing can be transmitted from the terminal to the server then it'll be hard to do anything besides have the server throttle itself, which isn't so great. 

Star issue 1933 to follow it.

michael

unread,
Mar 23, 2012, 11:56:16 AM3/23/12
to iterm2-...@googlegroups.com
On 23 Mar 2012, at 4:48PM, George Nachman wrote:

Interesting problem. I'll see if I can reproduce it... if the network is so clogged that nothing can be transmitted from the terminal to the server then it'll be hard to do anything besides have the server throttle itself, which isn't so great. 


Yes, there is a problem with the network. But when I log in manually and kill the window with an external tmux command, iTerm still continues to print data on the non-existant window. Somewhere lots of data is being buffered.... 

Michael
Reply all
Reply to author
Forward
0 new messages