[REGR #3956] Terminal incorrectly splits part of escape sequence #5797

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

Originally created by @Sidneys1 on GitHub (Jan 7, 2020).

Originally assigned to: @miniksa on GitHub.

Environment

Windows build number: 10.0.19041.0
Windows Terminal version (if applicable): Dev build @ 4882917
    Fix flipped sense in TerminalDispatch::CursorPosition (#4113)

Any other software?

PowerShell: 7.0.0-rc.1 and PowerShell 6.1.3
oh-my-posh: 2.0.342

Steps to reproduce

# Start powershell

# Install posh-git from the gallery
Install-Module posh-git -Scope CurrentUser

# Install oh-my-posh from the gallery, enter Y or A at the prompt
Install-Module oh-my-posh -Scope CurrentUser

# Load the oh-my-posh module
Import-Module oh-my-posh

# Set the theme to Paradox
Set-Theme Paradox

Expected behavior

Prompt is printed cleanly (as seen in the store release v0.7.3451.0):

image

Actual behavior

Right-most character of prompt is cut off (see timestamp) and part of an escape sequence has bled back to the beginning of the line (see "97ms"):

image

The existing prompt corrects itself after resizing the window, but subsequent prompts repeat the behavior:

image

This happens at any buffer size

Related Issues

Possibly related to #4037 (seems to be splitting an escape sequence) and/or #635 (although the "snap back" behavior is not exhibited)?

Originally created by @Sidneys1 on GitHub (Jan 7, 2020). Originally assigned to: @miniksa on GitHub. # Environment ```none Windows build number: 10.0.19041.0 Windows Terminal version (if applicable): Dev build @ 4882917 Fix flipped sense in TerminalDispatch::CursorPosition (#4113) Any other software? PowerShell: 7.0.0-rc.1 and PowerShell 6.1.3 oh-my-posh: 2.0.342 ``` # Steps to reproduce ```powershell # Start powershell # Install posh-git from the gallery Install-Module posh-git -Scope CurrentUser # Install oh-my-posh from the gallery, enter Y or A at the prompt Install-Module oh-my-posh -Scope CurrentUser # Load the oh-my-posh module Import-Module oh-my-posh # Set the theme to Paradox Set-Theme Paradox ``` # Expected behavior Prompt is printed cleanly (as seen in the store release v0.7.3451.0): ![image](https://user-images.githubusercontent.com/1771233/71899502-e003ff80-3129-11ea-9ea1-21294335aadf.png) # Actual behavior Right-most character of prompt is cut off (see timestamp) and part of an escape sequence has bled back to the beginning of the line (see "97ms"): ![image](https://user-images.githubusercontent.com/1771233/71899610-180b4280-312a-11ea-8145-f1a6ae90cb5e.png) The existing prompt corrects itself after resizing the window, but subsequent prompts repeat the behavior: ![image](https://user-images.githubusercontent.com/1771233/71899684-38d39800-312a-11ea-9a9d-b7f42753ee94.png) This happens at any buffer size # Related Issues Possibly related to #4037 (seems to be splitting an escape sequence) and/or #635 (although the "snap back" behavior is not exhibited)?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5797