Files
LLeMbas-TTY/mux
Josh McKinney 28709e0493 termwiz: take &self in Terminal::get_screen_size
No implementation needs mutable access to report the size. The Unix
version issues TIOCGWINSZ on the fd, the Windows version calls
GetConsoleScreenBufferInfo on the handle, and the mux and ssh
implementations copy a cached value.

The &mut requirement came from the UnixTty::get_size and
ConsoleOutputHandle::get_buffer_info helpers, which are both read-only
queries, so they take &self too.

This is a breaking change for implementors of Terminal. Callers are
unaffected, since &mut T coerces to &T.
2026-11-23 13:41:27 +01:00
..