Skip to content

Allow enabling flow control also inside the shell #7704

@depau

Description

@depau
  • 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 tty to find the tty/pty it's attached to
  • In another terminal, run sudo stty -F <tty found above> ixon ixoff to enable software flow control
  • Run sudo stty -a -F <tty found above> to verify that ixon and ixoff have indeed been enabled
  • Go back to the initial fish terminal and press enter
  • Run sudo stty -a -F <tty found above> to verify that ixon and ixoff have 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 😜)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions