Skip to content

can't change sigint keybinding or enable flow control with stty #1041

Closed

Description

@elcste

For example,

stty intr ^j

doesn't seem to have any effect. If I run the same command in bash and then start fish in the same terminal, it works as it should.

Activity

  1. ridiculousfish commented on Oct 15, 2013

    @ridiculousfish
    Member

    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.

  2. zanchey commented on Oct 16, 2013

    @zanchey
    Member

    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 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.

  3. added this to the fish-future milestone on Oct 5, 2014
  4. added
    bug
    on Oct 5, 2014
  5. zachguo commented on Jan 13, 2015

    @zachguo

    Is there a workaround for this?

  6. zanchey commented on Jan 16, 2015

    @zanchey
    Member

    Not that I know of.

  7. mwm commented on Dec 25, 2015

    @mwm
    Contributor

    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.

  8. anton-matosov commented on Mar 20, 2016

    @anton-matosov

    +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 =(

  9. seankhl commented on Jul 11, 2016

    @seankhl

    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.

  10. added and removed
    bug
    on Dec 17, 2016
  11. faho commented on Dec 17, 2016

    @faho
    Member

    Closing in favor of #2315.

  12. locked as resolved and limited conversation to collaborators on Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions