Midnight Commander subshell doesn't echo input #121

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

Comments

Projects
None yet
4 participants
@mbirth

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

This comment has been minimized.

Show comment
Hide comment
@maxfl

maxfl Jun 15, 2012

Contributor

have you tried to redefine SHELL variable before calling mc?

set SHELL /bin/bash
mc
Contributor

maxfl commented Jun 15, 2012

have you tried to redefine SHELL variable before calling mc?

set SHELL /bin/bash
mc
@mbirth

This comment has been minimized.

Show comment
Hide comment
@mbirth

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

This comment has been minimized.

Show comment
Hide comment
@mbirth

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

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

This comment has been minimized.

Show comment
Hide comment
@adityagodbole

adityagodbole Jul 30, 2012

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.

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

This comment has been minimized.

Show comment
Hide comment
@adityagodbole

adityagodbole Jul 31, 2012

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

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

@mbirth

This comment has been minimized.

Show comment
Hide comment
@mbirth

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

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

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Oct 6, 2012

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

Member

ridiculousfish commented Oct 6, 2012

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

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Oct 6, 2012

Member

Seems to fix the Linux issue - cross your fingers

Member

ridiculousfish commented Oct 6, 2012

Seems to fix the Linux issue - cross your fingers

@ridiculousfish

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Oct 6, 2012

Member

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

Member

ridiculousfish commented Oct 6, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment