mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-26 01:03:56 +00:00
vt: add total_rows and scrollback_rows to terminal get API
Add total_rows and scrollback_rows as new TerminalData variants queryable through the existing ghostty_terminal_get interface, using the cached O(1) total_rows field from PageList rather than introducing standalone functions.
This commit is contained in:
@@ -556,6 +556,20 @@ typedef enum {
|
||||
* Output type: GhosttyString *
|
||||
*/
|
||||
GHOSTTY_TERMINAL_DATA_PWD = 13,
|
||||
|
||||
/**
|
||||
* The total number of rows in the active screen including scrollback.
|
||||
*
|
||||
* Output type: size_t *
|
||||
*/
|
||||
GHOSTTY_TERMINAL_DATA_TOTAL_ROWS = 14,
|
||||
|
||||
/**
|
||||
* The number of scrollback rows (total rows minus viewport rows).
|
||||
*
|
||||
* Output type: size_t *
|
||||
*/
|
||||
GHOSTTY_TERMINAL_DATA_SCROLLBACK_ROWS = 15,
|
||||
} GhosttyTerminalData;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user