I was in an SSH session remotely using
vim. For some reason, SSH crashed, and I was returned to my home shell. However, whenever I tried to scroll, instead of the terminal scrolling, it printed sets of characters. Also, it's hard to reproduce a single set of characters, because every few seconds, it prints different characters. They are always ASCII characters, like
Toggling the alternate screen does not help, and all my other terminal tabs work fine.
How can I fix this terminal session?