Incorrect cursor positioning for certain unicode special characters #22433

Open
opened 2026-01-31 08:13:08 +00:00 by claunia · 0 comments
Owner

Originally created by @jjcarrier on GitHub (Oct 20, 2024).

Windows Terminal version

1.21.2701.0

Windows build number

10.0.22631.0

Other Software

Also tested on Windows Terminal v1.22.2702.0

Steps to reproduce

  1. Paste the following into the terminal
'✅' | Format-Hex

Observe cursor position, then press enter.

  1. Paste the following into the terminal
'👨‍👩‍👧‍👦' | Format-Hex

Expected Behavior

  1. The cursor position should be immediately following the x character.
  2. The cursor position should be immediately following the x character.

Actual Behavior

  1. The cursor position is off by one and you cannot move the cursor past the x character.
  2. The cursor position is many characters past where it should be.
Originally created by @jjcarrier on GitHub (Oct 20, 2024). ### Windows Terminal version 1.21.2701.0 ### Windows build number 10.0.22631.0 ### Other Software Also tested on Windows Terminal v1.22.2702.0 ### Steps to reproduce 1. Paste the following into the terminal ```pwsh '✅' | Format-Hex ``` Observe cursor position, then press enter. 2. Paste the following into the terminal ```pwsh '👨‍👩‍👧‍👦' | Format-Hex ``` ### Expected Behavior 1. The cursor position should be immediately following the `x` character. 2. The cursor position should be immediately following the `x` character. ### Actual Behavior 1. The cursor position is off by one and you cannot move the cursor past the `x` character. 2. The cursor position is many characters past where it should be.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:13:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22433