0

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?

before after

  • That's a curious one. Perhaps your terminal's capabilities are being incorrectly identified? Which terminal emulator do you use? What is your TERM environment variable set to? – phils Sep 11 '17 at 21:54
  • My term is 'xterm-256color' – shimao Sep 12 '17 at 20:13
  • And your terminal emulator is...? – phils Sep 12 '17 at 22:08
  • I'm not sure what you mean. When i type echo $TERM, i get xterm-256color. Some more detail is that this graphical glitch also happens sometimes when i search, and i think there are some answered questions about that issue so I will try out those solutions. – shimao Sep 14 '17 at 3:15
  • 1
    Yes. I am on GNOME Terminal 3.20 on Ubuntu 17.04. I have also experienced the problem on xfce4-terminal on archlinux. Furthermore, a friend I talked to mentioned they have the same problem, on their macbook-pro, although I'm not sure of their terminal – shimao Sep 14 '17 at 4:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.