ANSI erase in line not working? Typing capital C lags. #18578

Open
opened 2026-01-31 06:18:21 +00:00 by claunia · 0 comments
Owner

Originally created by @machielllo on GitHub (Oct 1, 2022).

Windows Terminal version

1.14.2228.0

Windows build number

10.0.22000.0

Other Software

wsl (ubuntu bash)

but same problem in powershell version 7

Steps to reproduce

In settings.json:
1:
// {
// "command": "unbound",
// "keys": "ctrl+p"
// },
{
"command":
{
"action": "sendInput", "input": "\u001b[0K"
},
"keys": "ctrl+p"
}

2: "\u001b[K"

3: no clue, it sometimes does this. terminal wide. persists until closed.

Expected Behavior

1: now in shell, ctrl-p kills the rest of the line from cursor position onwards
2: now in shell, ctrl-p kills the rest of the line from cursor position onwards
3: no lag

Actual Behavior

1: inserts "K"
2: wsl/bash: rings bell.
powershell: does nothing.
3: a lag, ie half a second before the character is displayed on screen.

Originally created by @machielllo on GitHub (Oct 1, 2022). ### Windows Terminal version 1.14.2228.0 ### Windows build number 10.0.22000.0 ### Other Software wsl (ubuntu bash) but same problem in powershell version 7 ### Steps to reproduce In settings.json: 1: // { // "command": "unbound", // "keys": "ctrl+p" // }, { "command": { "action": "sendInput", "input": "\u001b[0K" }, "keys": "ctrl+p" } 2: "\u001b[K" 3: no clue, it sometimes does this. terminal wide. persists until closed. ### Expected Behavior 1: now in shell, ctrl-p kills the rest of the line from cursor position onwards 2: now in shell, ctrl-p kills the rest of the line from cursor position onwards 3: no lag ### Actual Behavior 1: inserts "K" 2: wsl/bash: rings bell. powershell: does nothing. 3: a lag, ie half a second before the character is displayed on screen.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 06:18:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18578