From 45484aab84430ac2b18c7bbf44aba15f2b039677 Mon Sep 17 00:00:00 2001 From: akbash Date: Wed, 2 Sep 2026 23:19:59 +0300 Subject: fix: include short viewport output in recent reads (#3448) refs #3444 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> --- src/ghostty/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ghostty') 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 { + self.get_u16(ffi::GhosttyTerminalData_GHOSTTY_TERMINAL_DATA_CURSOR_Y) + } + pub fn effective_foreground_color(&self) -> Result, Error> { self.get_optional_rgb_color(TERMINAL_DATA_COLOR_FOREGROUND) } -- cgit v1.2.3