2

I have a very strange problem. Here is what happens:

  • I log into one of my machines via SSH (server is Mac OS 10.5)
  • I start a program and while it is running I type (CTRL+C) to quit it (i.e. tail -f)
  • Afterward I cannot see ANYTHING I type
  • I can type commands (without seeing them) and execute them and see the output.

Does anyone have any idea what could be causing this?

Thanks!

2
  • Do you get a prompt (i.e. PS1) when this happens? Or no prompt either? What happens when you press ^C repeatedly?
    – Daniel Beck
    Jan 25, 2011 at 14:36
  • Yes, I do get a prompt. Also, I can change the prompt and the PS1 is fine. When I press ^C repeatedly nothing changes
    – Harold
    Jan 26, 2011 at 23:27

3 Answers 3

5

You might try typing "reset" in the terminal to reset the terminal settings.

Sounds like your stdout is getting redirected somewhere other then your pty.

1
  • In some cases, you might have to press Ctrl-j before and after (and type reset blindly). Jan 25, 2011 at 7:43
0

As Kyle suggested, try to reset your terminal window - I´d suggest using the shortcut "cmd + R" for that though, assuming the computer from that your ssh´ing in is also a Mac.

0

I couldn't type in the terminal after I connected to the ssh. But I fixed it just by adding a new terminal at the right upper corner of the terminal in my VS Code.

1
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Sep 4, 2023 at 6:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .