Skip to content

terminal: ignore UTF-8-decoded C1 controls in the ground state - #14023

Merged
mitchellh merged 1 commit into
mainfrom
stream-c1
Aug 26, 2026
Merged

mitchellh merged 1 commit into
mainfrom
stream-c1

Conversation

@mitchellh

Copy link
Copy Markdown
Contributor

Drop UTF-8 decoded C1 controls entirely. This matches xterm's default behavior which is our standard policy (but note it diverges from libvte which executes them). There isn't really any standard I could find around this.

The ground state UTF-8 fast paths (both the scalar decoder and the batched SIMD path) previously treated decoded codepoints C1 control codepoints as normal UTF-8 text and routed them to print.

Drop UTF-8 decoded C1 controls entirely. This matches xterm's default
behavior which is our standard policy (but note it diverges from libvte
which executes them). There isn't really any standard I could find
around this.

The ground state UTF-8 fast paths (both the scalar decoder and the
batched SIMD path) previously treated decoded codepoints C1 control
codepoints as normal UTF-8 text and routed them to print.
@mitchellh mitchellh added this to the 1.4.0 milestone Aug 26, 2026
@mitchellh
mitchellh requested a review from a team as a code owner August 26, 2026 04:09
@ghostty-bot ghostty-bot Bot added the vt Control sequence related label Aug 26, 2026
@mitchellh
mitchellh merged commit 88f57ee into main Aug 26, 2026
205 checks passed
@mitchellh
mitchellh deleted the stream-c1 branch August 26, 2026 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vt Control sequence related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant