-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Milestone
Description
- fish, version 3.1.2
- Linux frigo 5.10.9-arch1-1 Need a history built-in #1 SMP PREEMPT Tue, 19 Jan 2021 22:06:06 +0000 x86_64 GNU/Linux
sh -c 'env HOME=$(mktemp -d) fish'- yep, it still does it
When running on a serial console which I explicitly configured with ixon and ixoff, fish keeps disabling said options every time a new prompt is printed.
I understand that users might think their system is locked up if they press Ctrl+S by mistake and the terminal stops responding, however there are cases in which one may need software flow control.
Is it possible to disable this behavior?
Reproducing
- Run fish in one terminal
- Run
ttyto find the tty/pty it's attached to - In another terminal, run
sudo stty -F <tty found above> ixon ixoffto enable software flow control - Run
sudo stty -a -F <tty found above>to verify thatixonandixoffhave indeed been enabled - Go back to the initial fish terminal and press enter
- Run
sudo stty -a -F <tty found above>to verify thatixonandixoffhave been disabled by fish - Do the same thing with another shell, such as bash, to verify that it respects the user's decision
(using another terminal makes it easier to demonstrate the issue since otherwise fish resets the terminal right after stty is run)
(to whoever thought "who uses software flow control intentionally in 2021 anyway?", I do 😜)