Skip to content

Consume unknown DCS quietly and report its actual introducer - #340

Open
ghosthack wants to merge 1 commit into
JetBrains:masterfrom
ghosthack:upstream-pr/quiet-unknown-dcs
Open

ghosthack wants to merge 1 commit into
JetBrains:masterfrom
ghosthack:upstream-pr/quiet-unknown-dcs

Conversation

@ghosthack

Copy link
Copy Markdown

Vim sends ESC P zz ESC \ as an xterm compatibility probe and expects an unknown DCS to be consumed without printing its payload or moving the cursor. JediTerm already consumes it, but emits a misleading warning that adds an OSC introducer to the diagnostic text.

Log fully consumed, unhandled DCS at DEBUG and retain the actual introducer when formatting string-sequence diagnostics. Add regression coverage for warning-free consumption, unchanged cursor position, and text preserved across every stream split around DCS and cursor sequences.

Validation: the full :core:test suite passes against upstream master. The consumption test also checks that the probe emits no WARN. No live terminal sessions were used.

@ghosthack
ghosthack force-pushed the upstream-pr/quiet-unknown-dcs branch from 754830b to 0dfeac9 Compare October 10, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant