[PR #15779] Add text based cursor movement helpers #30733

Closed
opened 2026-01-31 09:42:39 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/15779

State: closed
Merged: Yes


COOKED_READ_DATA is a little special and requires cursor navigation
based on the raw (buffered) text contents instead of what's in the
text buffer. This requires the introduction of new helper functions
to implement such cursor navigation. They're made part of TextBuffer
as these helpers will get support graphemes in the future.
It also helps keeping it close to TextBuffer as the cursor
navigation should optimally behave identical between the two.

Part of #8000.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/15779 **State:** closed **Merged:** Yes --- `COOKED_READ_DATA` is a little special and requires cursor navigation based on the raw (buffered) text contents instead of what's in the text buffer. This requires the introduction of new helper functions to implement such cursor navigation. They're made part of `TextBuffer` as these helpers will get support graphemes in the future. It also helps keeping it close to `TextBuffer` as the cursor navigation should optimally behave identical between the two. Part of #8000.
claunia added the pull-request label 2026-01-31 09:42:39 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30733