[REGRESSION >0.11.1251] Backward-kill-word after line wrapping in powershell doesn't clear exited line properly #8067

Closed
opened 2026-01-31 01:19:58 +00:00 by claunia · 2 comments
Owner

Originally created by @DHowett-MSFT on GitHub (May 11, 2020).

Originally assigned to: @zadjii-msft on GitHub.

I typed "eeeeeeee.. dddddddddd.." until the line wrapped, then hit Ctrl+Backspace

Before, both:

image

After, 0.11.1251.0:

image

After, 0.11.1294.0:

image

Originally created by @DHowett-MSFT on GitHub (May 11, 2020). Originally assigned to: @zadjii-msft on GitHub. I typed "eeeeeeee.. dddddddddd.." until the line wrapped, then hit <kbd>Ctrl+Backspace</kbd> ## Before, both: ![image](https://user-images.githubusercontent.com/14316954/81533956-fdd1b300-931b-11ea-8af1-5924bdfe7031.png) ## After, 0.11.1251.0: ![image](https://user-images.githubusercontent.com/14316954/81533890-e0044e00-931b-11ea-8c5e-95745ca121ef.png) ## After, 0.11.1294.0: ![image](https://user-images.githubusercontent.com/14316954/81533929-edb9d380-931b-11ea-9d8e-53e340af8a56.png)
Author
Owner

@zadjii-msft commented on GitHub (May 11, 2020):

welp. Back to 1.0 investigations -.-

Repros in VTPipeTerm too, so this isn't just Windows Terminal.

HA, powershell is writing the prompt line with VT. This should be easy to put into a test

EDIT: These traces are mixed conpty and powershell traces! They're not all straight from powershell!

API_WriteConsole    "NumBytes:  72
    Unicode:    0
    input buffer:   \x1b[93m\x1b[12;45Haaaaaaaaaaaaaaaaaaaaaaa\x1b[m qqqqqqqqqqqqqqqqqqqqqqqq \x1b[?25h"   
WindowViewport  "OriginLeft:    0
    OriginTop:  1
    ViewHeight:     30
    ViewWidth:  80" 
API_WriteConsole    "NumBytes:  6
    Unicode:    0
    input buffer:   \x1b[?25l" 
API_WriteConsole    "NumBytes:  76
    Unicode:    0
    input buffer:   ""\x1b[93m\x1b[12;45Haaaaaaaaaaaaaaaaaaaaaaa\x1b[m             \x1b[K  \x1b[12X\x1b[12;69H\x1b[?25h"""   

Also important! The line must wrap past the start of the input line.

Won't work Will work
image image
@zadjii-msft commented on GitHub (May 11, 2020): welp. Back to 1.0 investigations -.- Repros in VTPipeTerm too, so this isn't just Windows Terminal. HA, powershell is writing the prompt line with VT. This should be easy to put into a test **EDIT**: These traces are mixed conpty and powershell traces! They're not all straight from powershell! ``` API_WriteConsole "NumBytes: 72 Unicode: 0 input buffer: \x1b[93m\x1b[12;45Haaaaaaaaaaaaaaaaaaaaaaa\x1b[m qqqqqqqqqqqqqqqqqqqqqqqq \x1b[?25h" WindowViewport "OriginLeft: 0 OriginTop: 1 ViewHeight: 30 ViewWidth: 80" API_WriteConsole "NumBytes: 6 Unicode: 0 input buffer: \x1b[?25l" API_WriteConsole "NumBytes: 76 Unicode: 0 input buffer: ""\x1b[93m\x1b[12;45Haaaaaaaaaaaaaaaaaaaaaaa\x1b[m \x1b[K \x1b[12X\x1b[12;69H\x1b[?25h""" ``` Also important! The line must wrap _past_ the start of the input line. Won't work | Will work --|-- ![image](https://user-images.githubusercontent.com/18356694/81584516-71a1a900-9378-11ea-876d-1c98da335faa.png) | ![image](https://user-images.githubusercontent.com/18356694/81584546-7bc3a780-9378-11ea-8c1a-62cb79c4af96.png)
Author
Owner

@ghost commented on GitHub (May 13, 2020):

:tada:This issue was addressed in #5870, which has now been successfully released as Windows Terminal Release Candidate v0.11.1333.0 (1.0rc2).🎉

Handy links:

@ghost commented on GitHub (May 13, 2020): :tada:This issue was addressed in #5870, which has now been successfully released as `Windows Terminal Release Candidate v0.11.1333.0 (1.0rc2)`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.11.1333.0 (1.0rc2)) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8067