diff options
| author | akbash <akbash@herdr.dev> | 2026-09-02 23:19:59 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-02 23:19:59 +0300 |
| commit | 45484aab84430ac2b18c7bbf44aba15f2b039677 (patch) | |
| tree | 58f289bf743ed3de0c2179e3d290b17e265e5372 /src/ghostty | |
| parent | e22cba35ef7b405758097a5f9436aae8fb4caaf0 (diff) | |
fix: include short viewport output in recent reads (#3448)
refs #3444
Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Diffstat (limited to 'src/ghostty')
| -rw-r--r-- | src/ghostty/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ghostty/mod.rs b/src/ghostty/mod.rs index c044d3b0..261638af 100644 --- a/src/ghostty/mod.rs +++ b/src/ghostty/mod.rs @@ -1412,6 +1412,10 @@ impl Terminal { self.get_u16(ffi::GhosttyTerminalData_GHOSTTY_TERMINAL_DATA_ROWS) } + pub fn cursor_y(&self) -> Result<u16, Error> { + self.get_u16(ffi::GhosttyTerminalData_GHOSTTY_TERMINAL_DATA_CURSOR_Y) + } + pub fn effective_foreground_color(&self) -> Result<Option<RgbColor>, Error> { self.get_optional_rgb_color(TERMINAL_DATA_COLOR_FOREGROUND) } |
