pub fn terminal_cols() -> Option<usize>Expand description
Best-effort terminal column count read off stderr (fd 2) via
the TIOCGWINSZ ioctl. Returns None when stderr isn’t a
TTY or the call fails. The status renderer (now hosted by
nmbrs-tui::log_only_sink) uses this to clamp the rendered
status to a single visual row, since a wrap would leave
previous-tick text on screen below the cursor — the in-place
rewrite only erases from the cursor through end of the
current visual line.