News for hackers. Stuff that matters.
Re:It's all fun and games until someone [XOFF] by mitchty on Sunday June 21, 2015 @03:31AM (#9752561)
While this wouldn't have fixed this issue, this is why you should have:

    stty -ixon
In your .profile/shrc for your shell of choice. I've never needed flow control and never probably will, this stops that junk.
Re:It's all fun and games until someone [XOFF] by david-given on Sunday June 21, 2015 @03:43AM (#9752586)
Conversely: I use ^S and ^Q _all the time_. I've got a long-running program that's spewing output to a terminal? ^S and it stops so I can look at it, copy output elsewhere, etc. ^Q and it resumes again seamlessly.

It occurs to me that I grew up on the BBC Micro, where pressing Ctrl+Shift would pausing scrolling, so being able to do this is tightly engrained in muscle memory...

Re:It's all fun and games until someone [XOFF] by mitchty on Sunday June 21, 2015 @03:49AM (#9752602)
Fair enough, though I tend to just use tee and/or tmux for things like that. Just turn logging on if I'm curious and let things continue on their merry way.

Only time i've ever used it was when booting a system to stop output on a serial console. That was years ago and a one off basically.

Re:It's all fun and games until someone [XOFF] by namplaa on Sunday June 21, 2015 @04:15AM (#9752659)
In tmux ^b-] defaults to xoff too
Re:It's all fun and games until someone [XOFF] by mitchty on Sunday June 21, 2015 @04:24PM (#9754867)
This is why i have my ^b mapped to ^\ actually. :)
Re:It's all fun and games until someone [XOFF] by JadeNB on Sunday June 21, 2015 @10:00AM (#9753455)
> Conversely: I use ^S and ^Q _all the time_. I've got a long-running program that's spewing output to a terminal? ^S and it stops so I can look at it, copy output elsewhere, etc. ^Q and it resumes again seamlessly.

Why not ^Z and `fg`? (I'm sure that there's a subtle or not-so-subtle difference, but I've only ever suspended, never XOFF'd, so I don't know it.)

Re:It's all fun and games until someone [XOFF] by JoshTriplett on Sunday June 21, 2015 @10:14AM (#9753512)
^Z suspends the current application and returns to the program that ran it (typically the shell), which will then print a prompt. ^S and ^Q leave the output entirely undisturbed and unbroken.
Re:It's all fun and games until someone [XOFF] by yvdriess on Sunday June 21, 2015 @07:30AM (#9752997)
Note that this enables you to use the bash 'forward search', CTRL+R's forgotten twin.

I use CTRL+R and CTRL+S often in emacs and was frustrated that CTRL+S would not work on a command line terminal. As the article mentions, CTRL+S is typically interpreted as XON. Turning that off will enable forward search.

Re:It's all fun and games until someone [XOFF] by _yosefk on Sunday June 21, 2015 @04:15AM (#9752660)
I had a problem with scripts (reeeeeally hairy scripts with intertwined tcl and shell code, the tcl being used to drive some really obscure software) that failed when called from tcsh scripts which didn't have "-f" in them, and the user's .tcshrc had stty -ixon in it. I never figured out what the problem was...
Re:It's all fun and games until someone [XOFF] by fit2rule on Sunday June 21, 2015 @05:09AM (#9752740)
Never needed flow control? Like, never?

Not much of a console user then, maybe? Because, like, cat /something is useless without page control.

Oh, maybe you're a speedreader?

Re:It's all fun and games until someone [XOFF] by na85 on Sunday June 21, 2015 @05:21AM (#9752759)
I notice you are consistently a jerk when you write replies. Please stop being so snarky/sarcastic.

I never use flow control either, I just pipe it to less.

Re:It's all fun and games until someone [XOFF] by jacquesm on Sunday June 21, 2015 @05:39AM (#9752782)
I looked through his comment history and I really can't agree with you, this one comment is funny given the speed of todays consoles (when in the past I could easily keep up). Maybe you're confusing him/her with some other user?
Re:It's all fun and games until someone [XOFF] by fit2rule on Sunday June 21, 2015 @08:21AM (#9753126)
Well I apologize for being a consistent jerk, and I certainly appreciate your feedback. I'll try to upgrade the attitude.
Re:It's all fun and games until someone [XOFF] by mitchty on Sunday June 21, 2015 @04:21PM (#9754853)
I've only used flow control when booting systems like solaris on a serial console or other embedded hardware. Almost never for a tty session. I'm almost always saving output to a file and looking at that. Or using less +F or tmux etc... so yeah.

So my use of never might be hyperbolic, but it is a figure of speech. I can count on one hand with fingers leftover how often I've "needed" flow control. So just like in math, 0.99999 is equivalent functionally to 1 in this case.

Re:It's all fun and games until someone [XOFF] by dlitz on Sunday June 21, 2015 @09:10AM (#9753275)
I've been aware of XON/XOFF since forever, but I mostly just use my terminal's scrollback buffer.