Running emacs in terminal leads to scrambled text input #20418

Open
opened 2026-01-31 07:13:11 +00:00 by claunia · 6 comments
Owner

Originally created by @573 on GitHub (Aug 29, 2023).

Windows Terminal version

1.17.230526001

Windows build number

10.0.19045.0

Other Software

"GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu)" with org-mode v9.6.8 (inside WSL2)

Steps to reproduce

Configure emacs to use org-mode and type some text in a line.
Now move on that line to remove and insert text at arbitrary positions, i. e. type " a some characters ".

Expected Behavior

The new text is exactly as typed.

Actual Behavior

The cursor is jumping involuntary to the beginning of and back to typing position in line meanwhile garbling the text you already typed in unpredictable manner.

Originally created by @573 on GitHub (Aug 29, 2023). ### Windows Terminal version 1.17.230526001 ### Windows build number 10.0.19045.0 ### Other Software "GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu)" with org-mode v9.6.8 (inside WSL2) ### Steps to reproduce Configure emacs to use org-mode and type some text in a line. Now move on that line to remove and insert text at arbitrary positions, i. e. type " a some characters ". ### Expected Behavior The new text is exactly as typed. ### Actual Behavior The cursor is jumping involuntary to the beginning of and back to typing position in line meanwhile garbling the text you already typed in unpredictable manner.
claunia added the Issue-BugArea-VTProduct-TerminalPriority-2 labels 2026-01-31 07:13:11 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 29, 2023):

How are you launching the Terminal? Are you

  • starting the Terminal directly (the start menu, or wt.exe, or taskbar, or whatever)?
  • or are you launching wsl.exe (or ubuntu.exe, or whatever distro of choice) directly?

This sounds vaguely like #14512

Can you try Terminal Preview v1.18 and let us know if it repros on that build/?

@zadjii-msft commented on GitHub (Aug 29, 2023): How are you launching the Terminal? Are you * starting the Terminal directly (the start menu, or `wt.exe`, or taskbar, or whatever)? * or are you launching `wsl.exe` (or `ubuntu.exe`, or whatever distro of choice) directly? This sounds vaguely like #14512 Can you try Terminal Preview v1.18 and let us know if it repros on that build/?
Author
Owner

@573 commented on GitHub (Aug 29, 2023):

@zadjii-msft launching WindowsTerminal.exe via taskbar with one "terminal profile" defined to start wsl.exe, I also tried starting wsl.exe directly from a pwsh.exe instance circumventing WindowsTerminal.exe and there the behaviour was not reproducible.

Will try your steps asap.

@573 commented on GitHub (Aug 29, 2023): @zadjii-msft launching WindowsTerminal.exe via taskbar with one "terminal profile" defined to start wsl.exe, I also tried starting wsl.exe directly from a pwsh.exe instance circumventing WindowsTerminal.exe and there the behaviour was not reproducible. Will try your steps asap.
Author
Owner

@573 commented on GitHub (Aug 29, 2023):

@zadjii-msft issue persists with wt.exe v1.18.1462.0

@573 commented on GitHub (Aug 29, 2023): @zadjii-msft issue persists with `wt.exe` v1.18.1462.0
Author
Owner

@lhecker commented on GitHub (Aug 30, 2023):

@DHowett has some ideas on how we can collect more info.

@lhecker commented on GitHub (Aug 30, 2023): @DHowett has some ideas on how we can collect more info.
Author
Owner

@zcobol commented on GitHub (Aug 31, 2023):

@573 is org build-in or installed? Use M-x package-list-packages to check.

@zcobol commented on GitHub (Aug 31, 2023): @573 is org `build-in` or `installed`? Use `M-x package-list-packages` to check.
Author
Owner

@573 commented on GitHub (Aug 31, 2023):

@zcobol actually I see two intances when M-x ...:

org 9.6.8 external Outline-based notes management and organizer
org 9.6.6 built-in Outline-based notes management and organizer

M-x org-version:

Org mode version 9.6.8 ( @ /nix/store/iks7vqhr0lqg084h7aqbmhkakc58inbm-emacs-packages-deps/share/emacs/site-lisp/elpa/o
rg-9.6.8/)

@573 commented on GitHub (Aug 31, 2023): @zcobol actually I see two intances when `M-x ...`: >org 9.6.8 external Outline-based notes management and organizer org 9.6.6 built-in Outline-based notes management and organizer `M-x org-version`: >Org mode version 9.6.8 ( @ /nix/store/iks7vqhr0lqg084h7aqbmhkakc58inbm-emacs-packages-deps/share/emacs/site-lisp/elpa/o\ rg-9.6.8/)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20418