Add terminal positioning (TerminalCanvas) #11

Open
opened 2026-06-22 23:18:04 +02:00 by raupy · 0 comments
Owner

Add the ability to position content at arbitrary terminal locations and center boxes/tables.

Requires:

  • TerminalInfo: reliable terminal width/height detection (stty, tput, env vars)
  • TerminalCanvas: placement API with centering helpers (putCentered, putCenteredHorizontally, putCenteredVertically)
  • ANSI cursor movement for render()

Note: cursor positioning may not work in all environments (e.g. Gradle console). Needs investigation and graceful fallback.

Add the ability to position content at arbitrary terminal locations and center boxes/tables. Requires: - [ ] TerminalInfo: reliable terminal width/height detection (stty, tput, env vars) - [ ] TerminalCanvas: placement API with centering helpers (putCentered, putCenteredHorizontally, putCenteredVertically) - [ ] ANSI cursor movement for render() Note: cursor positioning may not work in all environments (e.g. Gradle console). Needs investigation and graceful fallback.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
raupy/console-utils#11
No description provided.