[GH-ISSUE #778] Rendering magic #570

Closed
opened 2026-03-04 01:06:06 +03:00 by kerem · 1 comment
Owner

Originally created by @eighty4 on GitHub (Dec 11, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/778

I took a glance at the codebase and couldn't find how ANSI or VT100 is used to render terminal window size aware interfaces.

I've read that this can be done by doing a resize to 99 lines and 999 columns and then getting the size of the terminal?

CUP 999 999
DSR 6

I couldn't find these vt100 escape sequences in your codebase so I'm still stumped (but still searching).

Thanks!

Originally created by @eighty4 on GitHub (Dec 11, 2022). Original GitHub issue: https://github.com/rivo/tview/issues/778 I took a glance at the codebase and couldn't find how ANSI or VT100 is used to render terminal window size aware interfaces. I've read that this can be done by doing a resize to 99 lines and 999 columns and then getting the size of the terminal? ``` CUP 999 999 DSR 6 ``` I couldn't find these vt100 escape sequences in your codebase so I'm still stumped (but still searching). Thanks!
kerem closed this issue 2026-03-04 01:06:06 +03:00
Author
Owner

@rivo commented on GitHub (Dec 12, 2022):

You'll want to ask @gdamore about this. tview uses tcell which does all the heavy lifting regarding terminals and ANSI sequences.

Since I can't help you with this inquiry, I'll close this issue.

<!-- gh-comment-id:1346675270 --> @rivo commented on GitHub (Dec 12, 2022): You'll want to ask @gdamore about this. `tview` uses [`tcell`](https://github.com/gdamore/tcell) which does all the heavy lifting regarding terminals and ANSI sequences. Since I can't help you with this inquiry, I'll close this issue.
Sign in to join this conversation.
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
starred/tview#570
No description provided.