nex_squid/crates/squid-tui
mula.liu 4fca6cd0bc Name the system the platform reported, not the one the row was written for
Found while reading a captured Windows screen against the machine that produced
it: the Power card printed `LENOVO 20SDA09HCD · macOS 15.1` on a Windows 10 box,
because the operating system was hardcoded in the `format!` while the platform
layer had been answering correctly all along. `host.os_version` is already
`Windows 10 Pro (build 18363)` there and `macOS 15.1 (24B83)` here, so the card
was naming a system twice and getting one of them wrong.

Truncation had it backwards too. The row squeezed whichever half it liked, and
the half that fell off the end on a narrow console was the build number — the one
number that decides whether Windows Terminal exists, whether the buffer can be
resized, whether the glyphs cost one cell or two. The machine model is now the
half asked to give room, and when fewer than six characters of it survive it
leaves the row entirely.
2026-10-15 21:20:37 +08:00
..
src Name the system the platform reported, not the one the row was written for 2026-10-15 21:20:37 +08:00
Cargo.toml squid 0.1.0: macOS 磁盘清理(CLI + TUI) 2026-10-13 17:00:50 +08:00