Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Midnight Commander subshell doesn't echo input #121

Closed
mbirth opened this issue Jun 12, 2012 · 9 comments
Closed

Midnight Commander subshell doesn't echo input #121

mbirth opened this issue Jun 12, 2012 · 9 comments
Milestone

Comments

@mbirth
Copy link

mbirth commented Jun 12, 2012

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.

@maxfl
Copy link
Contributor

maxfl commented Jun 15, 2012

have you tried to redefine SHELL variable before calling mc?

set SHELL /bin/bash
mc

@mbirth
Copy link
Author

mbirth commented Jun 15, 2012

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

@mbirth
Copy link
Author

mbirth commented Jun 20, 2012

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

@adityagodbole
Copy link

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.

@adityagodbole
Copy link

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

@mbirth
Copy link
Author

mbirth commented Jul 31, 2012

@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. ;-)

@ridiculousfish
Copy link
Member

Let's try checking in the patch and see if anything breaks
To git@github.com:fish-shell/fish-shell.git
14bf057..b67526a master -> master

@ridiculousfish
Copy link
Member

Seems to fix the Linux issue - cross your fingers

@ridiculousfish
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants