Skip to content

Send a CPR request on every unknown sequence#20009

Merged
lhecker merged 2 commits into
mainfrom
dev/lhecker/19926-legacy-cursor-pos
Mar 24, 2026
Merged

Send a CPR request on every unknown sequence#20009
lhecker merged 2 commits into
mainfrom
dev/lhecker/19926-legacy-cursor-pos

Conversation

@lhecker

@lhecker lhecker commented Mar 24, 2026

Copy link
Copy Markdown
Member

This PR is 90% wiring up OOP interfaces.

Closes #19926

Validation Steps Performed

  • Run github.com/xtermjs/vtc
  • Observed UnknownSequence calls under a debugger

Comment thread src/server/ApiDispatchers.cpp Outdated

@DHowett DHowett left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm fine with this, even if it's gonna be a little annoying to add a useless virtual dispatch in some places. eh.

it doesn't help with screen buffer consistency, but it does help with the user's input feeling like it's going in the right place i suppose.

}
break;
}
case OscActionCodes::CurrentWorkingDirectory:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clever, I see why you asked (and why you added this here too)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it was really annoying during testing lol.

@lhecker lhecker enabled auto-merge (squash) March 24, 2026 22:26
@lhecker lhecker merged commit da0446a into main Mar 24, 2026
18 of 20 checks passed
@lhecker lhecker deleted the dev/lhecker/19926-legacy-cursor-pos branch March 24, 2026 23:00
@github-project-automation github-project-automation Bot moved this to To Cherry Pick in 1.25 Servicing Pipeline Apr 3, 2026
@DHowett DHowett moved this from To Cherry Pick to Cherry Picked in 1.25 Servicing Pipeline Apr 3, 2026
DHowett pushed a commit that referenced this pull request Apr 3, 2026
This PR is 90% wiring up OOP interfaces.

Closes #19926

## Validation Steps Performed
* Run `github.com/xtermjs/vtc`
* Observed `UnknownSequence` calls under a debugger

(cherry picked from commit da0446a)
Service-Card-Id: PVTI_lADOAF3p4s4BQX0-zgpBLzY
Service-Version: 1.25
@lhecker lhecker added Area-VT Virtual Terminal sequence support Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Priority-1 A description (P1) Product-Conpty For console issues specifically related to conpty and removed Needs-Tag-Fix Doesn't match tag requirements labels May 7, 2026
@DHowett DHowett moved this from Cherry Picked to Shipped in 1.25 Servicing Pipeline Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-VT Virtual Terminal sequence support Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-1 A description (P1) Product-Conpty For console issues specifically related to conpty

Projects

Development

Successfully merging this pull request may close these issues.

ConPTY: cursor position desync after passing through unrecognized VT sequences (APC from Kitty graphics etc)

2 participants