When I ssh onto a remote server, and then open emacs on that server, and attempt to edit, I often experience many issues with the display.
For example, when I move my cursor around the file using C-l or C-v, lines often get mixed up and display improperly. If I have multiple files open, moving around in one file causes lines to move around. This is a completely graphical issue and if i background and resume emacs, everything goes back to normal.
I've attached two screenshots, showing emacs before I hit C-l a couple of times, and showing the window after I hit C-l a couple of times. As you can see, the code afterwards is displayed improperly, and the bounday between the two files is also screwed up.
What is the cause of this, and how can it be fixed?
TERM
environment variable set to?