Skip to content

Midnight Commander subshell doesn't echo input #121

Closed

Description

@mbirth

When running mc from fish (which then spawns a bash subshell), I can't see my input on the subshell (Ctrl-O). Output from commands is shown, only my input is not echoed. After doing "reset", my input is echoed again.

Activity

  1. maxfl commented on Jun 15, 2012

    @maxfl
    Contributor

    have you tried to redefine SHELL variable before calling mc?

    set SHELL /bin/bash
    mc
  2. mbirth commented on Jun 15, 2012

    @mbirth
    Author

    This is what I do - otherwise there's no subshell:

    function mc -d "Midnight Commander"
        set old_shell $SHELL
        set SHELL /bin/bash
        command /usr/bin/mc
        set SHELL $old_shell
    end
    
  3. mbirth commented on Jun 20, 2012

    @mbirth
    Author

    Seems to be a problem with the set command? The command set TERM xterm-color; ssh example.org also makes the local echo hidden.

  4. adityagodbole commented on Jul 30, 2012

    @adityagodbole

    Don't think it is a problem with with 'set'. Looks more like the issue reported at https://bugs.launchpad.net/ubuntu/+source/fish/+bug/318934

    I'm facing the same problem. Trying to write a function which does ssh. After I login, 'stty sane' solves the problem.

  5. adityagodbole commented on Jul 31, 2012

    @adityagodbole

    @mbirth adityagodbole@9d229cd should fix this. At least, it fixed my ssh problem.

  6. mbirth commented on Jul 31, 2012

    @mbirth
    Author

    @adityagodbole Thanks a lot! Your little fix did the trick.

    @fish-shell Please disable restoring the mode as @adityagodbole did. (Or find the reason it breaks the local echo and fix it. ;-)

  7. ridiculousfish commented on Oct 6, 2012

    @ridiculousfish
    Member

    Let's try checking in the patch and see if anything breaks
    To [email protected]:fish-shell/fish-shell.git
    14bf057..b67526a master -> master

  8. ridiculousfish commented on Oct 6, 2012

    @ridiculousfish
    Member

    Seems to fix the Linux issue - cross your fingers

  9. ridiculousfish commented on Oct 6, 2012

    @ridiculousfish
    Member

    Fixed with commit b67526a per issue #121 - reopen if you still see it please

  10. locked as resolved and limited conversation to collaborators on Apr 19, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions