generated from erix/meta
[FEATURE] Render cursor positioning and display erase for native pagers #3
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/lib-console#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem and motivation
The native manual pager redraws with CSI H followed by CSI 2J. LibConsole consumes
both sequences without applying them, leaving the previous page on screen.
Proposed behavior and scope
Add ordinary-terminal cursor positioning (CUP, CSI row;column H, default 1;1)
and whole-display erase (ED, CSI 2J). Coordinates are one-based and clamp to
actual geometry. Empty or zero coordinates use the default. Erase the visible
text cells in the selected background without moving the cursor.
Keep framebuffer rendering and geometry-only cursor tracking consistent across
fragmented writes. Preserve the caret overlay, framebuffer padding/trailing bytes,
malformed-sequence refusal and route-boundary resets.
Authority, security and reliability
These controls act only on the framebuffer already borrowed by the ordinary
terminal renderer. They add no endpoint, mapping, lookup, mode or session authority.
Trusted/log text continues to bypass ordinary escape decoding. Unsupported or
malformed parameter forms must not partially move the cursor or erase pixels.
Acceptance criteria
Alternatives and tradeoffs
Repainting with repeated relative movement and row erasure would force each pager
to work around missing common display controls. These two standard operations fit
the existing allocation-free decoder and renderer.
Tracking and rollout
Supports native man and
terminal geometry.
The semantics follow ECMA-48, CUP and ED.
Update the existing LibConsole review and Integration supplier together.
dacc83ca implements CUP and ED2 through the existing bounded decoder. Cursor positioning handles omitted/zero coordinates and clamps to geometry; display erase keeps the cursor, caret custody and padding intact. Literal trusted/log rendering keeps its existing path. Integration adoption is being coordinated with the manual work.