Emacs terminal interface in WSL / SSH is broken in 1809 #465

Closed
opened 2026-01-30 21:52:57 +00:00 by claunia · 2 comments
Owner

Originally created by @vlj on GitHub (Dec 6, 2018).

I added the same comment to feedback Hub, I don't know if it's more efficient to use github or the feedback hub.

In 1809 when launching emacs from WSL (it's available with Ubuntu image + apt install emacs) or through ssh in CMD.exe/PowerShell to a remote Mac/OSX, the terminal interface is broken : when a line is "big enough" (like 20 characters long), moving the caret to the right randomly skip letters. CTRL + E (shortcut to go to the end of the line) also skip characters. Scrolling is also producing random garbage letters at random location. Editing files is practically impossible.

Note that it's likely that others editor are concerned too but I didn't test them.

It worked properly with 18.03

Originally created by @vlj on GitHub (Dec 6, 2018). I added the same comment to feedback Hub, I don't know if it's more efficient to use github or the feedback hub. In 1809 when launching emacs from WSL (it's available with Ubuntu image + apt install emacs) or through ssh in CMD.exe/PowerShell to a remote Mac/OSX, the terminal interface is broken : when a line is "big enough" (like 20 characters long), moving the caret to the right randomly skip letters. CTRL + E (shortcut to go to the end of the line) also skip characters. Scrolling is also producing random garbage letters at random location. Editing files is practically impossible. Note that it's likely that others editor are concerned too but I didn't test them. It worked properly with 18.03
claunia added the Product-ConhostResolution-Duplicate labels 2026-01-30 21:52:57 +00:00
Author
Owner

@oising commented on GitHub (Dec 6, 2018):

I can verify on WSL, win10 build 18290 (latest insider on fast).

The issue is best demonstrated by holding down the right arrow key. The cursor skips erratically back and forth, up and down.

The issue goes away with $TERM set to xterm-color -- it's only happening with xterm-256color. That's as far as I dug in.

@vlj -- run export TERM=xterm-color and the issue goes away (at least on build 18290)

@oising commented on GitHub (Dec 6, 2018): I can verify on WSL, win10 build 18290 (latest insider on fast). The issue is best demonstrated by holding down the right arrow key. The cursor skips erratically back and forth, up and down. The issue goes away with `$TERM` set to `xterm-color` -- it's only happening with `xterm-256color`. That's as far as I dug in. @vlj -- run `export TERM=xterm-color` and the issue goes away (at least on build 18290)
Author
Owner

@zadjii-msft commented on GitHub (Dec 6, 2018):

Please search before filing new issues - this is definitely a dupe of #283

@zadjii-msft commented on GitHub (Dec 6, 2018): Please search before filing new issues - this is definitely a dupe of #283
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#465