mouse click after ssh connection broken
I have logged into a remote server by
ssh in the terminal. The connection was terminated due to the server going down or a network problem.
Then something annoying appears. Once I click the mouse on the terminal, it automatically inputs something like:
What the hell are these things and is there a way to prevent it or diminish them without needing to restart the terminal?
I suspect you were using an application on the remote system that understood mouse movement within a character-based application (i.e. a terminal session rather than a GUI application). The connection broke, and because the mouse driver was still expecting to send movements in terms of character sequences, that’s what you saw on your now-local terminal session.
Reset the terminal out of "application mode" and all will be well once more:
- How to implement proper mouse support in a terminal / terminfo entry?
man terminfo– search for "mouse"