You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Ctrl-s as my GNU screen escape key, rather than the default Ctrl-a. This doesn't seem to work when I use fish (2.0 or master) as my shell.
Nothing at all happens when I press Ctrl-s, and whatever I type next just appears in the terminal. For example the screen command to create a new window is "Ctrl-s c", but this just prints the "c" into the terminal.
Under bash I did have to turn off terminal flow control with "stty -ixon" to use Ctrl-s, but this setting doesn't seem to change anything under fish.
More info: Everything works fine if I start a bash shell, then create or attach to a screen session from within that, even though the windows in the screen session are all themselves using fish as the shell.
That workaround fixed things for me, thanks. I just changed my current alias/function for starting screen to include the stty stuff.
I'm closing this, as it's a pretty edge-case "bug".
I experience this problem. Specifically, I can't turn off flow control like I can with bash using stty -ixon -ixoff so whenever I'm using fish (tmux or not, vim or not) accidentally pressing CTRL+S will lock the terminal.
I assumed this was instability before, until I discovered that CTRL+Q could bring it back. However, I would much rather just turn flow control off.
Reopening... we really should respect existing terminal modes, especially -ixon -ixoff. I wonder if we should even turn it off by default - is there any good use case for it?
I think it should be turned off by default; because this is an ancient, depreciated 'feature' that is not really used today.Who would use fish over a VT100? Especially as it's not compatible anyway. I think it's more likely to cause confusion and a bad impression of fish if left on.
Whilst other terminals leave it on for compatibility, fish places itself as a modern shell.
If anyone needs to use it, they'll know what it is and how to configure it.
OK, so the real problem here is that we save the terminal mode when we start a new job, then restore it when it completes. This protects our terminal against accidentally catting a binary file, and similar problems, but it means that stty has exactly zero effect. Not sure what the right solution here is; special-casing stty seems like it could cause problems. Even if we turn XOFF/XON off by default, there should probably be a way to restore it...
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/814#issuecomment-24895040
.
I swtiched from bash to fish on ubuntu 16.04 recently,
CTRL-S and CTRL-Q does not work as before.
Are there any configuration can be used to flow control on?
Activity
d5ve commentedon May 23, 2013
More info: Everything works fine if I start a bash shell, then create or attach to a screen session from within that, even though the windows in the screen session are all themselves using fish as the shell.
zanchey commentedon May 24, 2013
I can reproduce this with fish 924b646 and screen 4.00.03jw4.
The problem appears to be that
stty -ixonis indeed needed but that the flow control status gets reset every time fish prints the prompt.A workaround is
stty -ixon; screen -e \^Ss.d5ve commentedon May 24, 2013
That workaround fixed things for me, thanks. I just changed my current alias/function for starting screen to include the stty stuff.
I'm closing this, as it's a pretty edge-case "bug".
naggie commentedon Jul 30, 2013
I experience this problem. Specifically, I can't turn off flow control like I can with bash using
stty -ixon -ixoffso whenever I'm using fish (tmux or not, vim or not) accidentally pressing CTRL+S will lock the terminal.I assumed this was instability before, until I discovered that CTRL+Q could bring it back. However, I would much rather just turn flow control off.
zanchey commentedon Jul 31, 2013
Reopening... we really should respect existing terminal modes, especially
-ixon -ixoff. I wonder if we should even turn it off by default - is there any good use case for it?naggie commentedon Jul 31, 2013
Agreed.
I think it should be turned off by default; because this is an ancient, depreciated 'feature' that is not really used today.Who would use fish over a VT100? Especially as it's not compatible anyway. I think it's more likely to cause confusion and a bad impression of fish if left on.
Whilst other terminals leave it on for compatibility, fish places itself as a modern shell.
If anyone needs to use it, they'll know what it is and how to configure it.
Cheers
Cal
leeola commentedon Aug 16, 2013
I too ran into this, quite annoying when the standard solution of
stty -ixonseemingly didn't work in Fish. I thought i had to change shellszanchey commentedon Aug 23, 2013
OK, so the real problem here is that we save the terminal mode when we start a new job, then restore it when it completes. This protects our terminal against accidentally
catting a binary file, and similar problems, but it means thatsttyhas exactly zero effect. Not sure what the right solution here is; special-casingsttyseems like it could cause problems. Even if we turn XOFF/XON off by default, there should probably be a way to restore it...Disable flow control per #814
ridiculousfish commentedon Sep 23, 2013
7ce5f34 disables flow control - let's see if anyone complains. I also don't know what to do about stty.
Thanks for reporting this.
naggie commentedon Sep 23, 2013
Awesome :-) no problem. Thanks for fixing it.
On 23 Sep 2013 02:17, "ridiculousfish" [email protected] wrote:
trulyliu commentedon Dec 14, 2016
I swtiched from bash to fish on ubuntu 16.04 recently,
CTRL-S and CTRL-Q does not work as before.
Are there any configuration can be used to flow control on?
faho commentedon Dec 14, 2016
@trulyliu: Fish disables flow control, i.e. that feature. There currently is no configuration option to reenable it.
If you wish to propose a way to change that, #2315 should be the correct issue to do that.