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
{{ message }}
Repository navigation
can't change sigint keybinding or enable flow control with stty #1041
a) try and come up with a set of terminal modes which we respect if they have changed; this has the potential to introduce exciting behaviour if e.g. a binary file is written to the terminal
b) special case stty or make it a builtin
c) identify required functionality in stty and reimplement it as a builtin (setty?) - e.g. intr, lnext... but then there are two tools which do the same job, and some of the parts of stty still work e.g. setting the number of columns.
Yet another alternative: properly preserve the tty modes between commands. This is much easier, doesn't introduce yet more system dependencies, and is how most other shells behave.
See the pr #2317 for an implementation. This should also fix the issue raised here.
+1 here.
I use stty intr "^x" in bash to make use of default ctrl-c shortcut to copy instead of interrupt
However can't do this with fish because of this issue =(
Another +1. This is keeping me from using fish more.
I want to have a "one-shot" mode for fish where pressing enter sends a SIGINT. Currently this seems impossible, even with tmux-sendkeys, autohotkey, you name it... Ctrl+c is the only way to send SIGINT to %self from %self, and binding any key to Ctrl+c destroys the use of that key.
Activity
ridiculousfish commentedon Oct 15, 2013
Yes, see the discussion in #814 about stty and why it doesn't do anything in fish.
This bug can track figuring out what to do about stty. A simple possibility is to just special-case it.
zanchey commentedon Oct 16, 2013
Ideas...
a) try and come up with a set of terminal modes which we respect if they have changed; this has the potential to introduce exciting behaviour if e.g. a binary file is written to the terminal
b) special case
sttyor make it a builtinc) identify required functionality in
sttyand reimplement it as a builtin (setty?) - e.g.intr,lnext... but then there are two tools which do the same job, and some of the parts ofsttystill work e.g. setting the number of columns.zachguo commentedon Jan 13, 2015
Is there a workaround for this?
zanchey commentedon Jan 16, 2015
Not that I know of.
mwm commentedon Dec 25, 2015
Yet another alternative: properly preserve the tty modes between commands. This is much easier, doesn't introduce yet more system dependencies, and is how most other shells behave.
See the pr #2317 for an implementation. This should also fix the issue raised here.
only swith to shell tty mode if interactive
anton-matosov commentedon Mar 20, 2016
+1 here.
I use
stty intr "^x"in bash to make use of default ctrl-c shortcut to copy instead of interruptHowever can't do this with fish because of this issue =(
seankhl commentedon Jul 11, 2016
Another +1. This is keeping me from using fish more.
I want to have a "one-shot" mode for fish where pressing enter sends a SIGINT. Currently this seems impossible, even with
tmux-sendkeys, autohotkey, you name it... Ctrl+c is the only way to send SIGINT to%selffrom%self, and binding any key to Ctrl+c destroys the use of that key.faho commentedon Dec 17, 2016
Closing in favor of #2315.