Files
Josh McKinney 374b4dca90 termwiz: add BufferedTerminal::terminal_ref
The only way to reach the terminal inside a BufferedTerminal was
terminal(&mut self), so code holding a shared reference could not ask
it for anything, including its size. dimensions(), reached through
Deref<Target = Surface>, is the size of the cached surface and only
changes when check_for_resize is called.

terminal_ref(&self) is the shared-reference counterpart to terminal(),
so callers can use the now &self Terminal::get_screen_size to get the
real size.
2026-11-23 13:41:27 +01:00
..
2024-05-13 13:03:44 -07:00
2023-02-12 05:46:17 -08:00