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

tty's echo setting not propagated #23

Open
hotsphink opened this issue Apr 9, 2013 · 2 comments
Open

tty's echo setting not propagated #23

hotsphink opened this issue Apr 9, 2013 · 2 comments

Comments

@hotsphink
Copy link

In my first test of this, I started up gdb in a terminal, then grabbed it in another terminal with reptyr. The two things I immediately noticed not working were that ^Z didn't suspend (but there's already an issue filed for that), and the receiving terminal did not echo my characters.

I was running gdb, so I entered !stty echo and it fixed it, but perhaps some of the settings should be propagated automatically? (Or something; terminals baffle me.)

@nelhage
Copy link
Owner

nelhage commented Apr 13, 2013

Interesting. We should be restoring the terminal state, but I can reproduce this issue, so I'll have to investigate. Thanks for the report.

@nelhage
Copy link
Owner

nelhage commented Apr 21, 2013

Huh. Finally digging now. It turns out gdb does put the terminal in -echo, and then does echo itself (presumably via libreadline), (which is quite common), but that after being restored, it stops echoing. I haven't yet pegged why it does so.

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

No branches or pull requests

2 participants