nex_squid/scripts
mula.liu 687f9c6959 Say which console a frame was judged on, and stop blaming the interface for the shell
Three ways this pipeline produced a verdict that was not about the TUI.

The frame judge required every right border on a screen to land in the same
column. That was written when the widest window anyone captured was 100 columns
and the interface drew one card. At 140 columns the menu column and the panel
are two frames side by side — the menu ends at column 31, the panel at 140 — and
the rows where the panel has already finished genuinely do end at 31. A tidy
140-column screen was therefore garbled on every single capture, which is a
mistake the judge makes rather than the console, and mistakes the judge makes
should not have to be re-litigated on real hardware. The rule is now the one that
survives both layouts: the border columns of the widest rows are the picture, and
a row with a border column that appears nowhere in that picture means two
pictures of different sizes are stacked on one screen. `side_by_side` and the
narrow-card-under-wide-card case are both in `--selftest`, so whoever tightens
that rule again finds out there, in a millisecond, rather than on the box.

`win-tui-run.ps1` always ran `chcp 65001`, because UTF-8 comes back through the
capture with no decoding guess involved. It also means the probe always measured
a UTF-8 console, while the window being complained about sits on cp936 — and
which code page a console is on is exactly what decides what an unasked-for
character costs. `$SQUID_TUI_CP` picks the code page now, the runner reports it
as `MARK_CODEPAGE`, and the judge prints it on the first line of every report,
because a frame is only evidence for the console it was taken from. Both routes
are green on the box with the price list as it now stands: 140x35 on 65001, 101
settled frames, none of them overflowing, box-drawing intact; 100x32 on 936, 54
frames, same. The comments that claimed the ConPTY measures one cell because
UTF-8 is forgiving have been corrected too — it measures one cell on 936 as
well, which is a fact about a console with no font, not about a code page.

And when the runner itself fails to parse, the stream still contains a console:
a PowerShell error block, and then nothing. The judge said "no settled frame with
a border was ever drawn", which is true and useless, and it read like a rendering
regression badly enough that drawing code got changed because of it. A
`CategoryInfo` in the stream is now reported as what it is — the capture script
never started the interface — and it is a selftest case, so the excuse is on
record as belonging to the harness.
2026-10-15 22:28:49 +08:00
..
ci-windows.ps1 Record what the Windows box proved, and keep the proof repeatable 2026-10-15 18:55:01 +08:00
install.sh squid 0.1.0: macOS 磁盘清理(CLI + TUI) 2026-10-13 17:00:50 +08:00
release.sh 修改了README.md 2026-10-15 10:05:34 +08:00
tui-frame-check.py Say which console a frame was judged on, and stop blaming the interface for the shell 2026-10-15 22:28:49 +08:00
tui_smoke.py squid 0.1.0: macOS 磁盘清理(CLI + TUI) 2026-10-13 17:00:50 +08:00
win-check.ps1 Record what the Windows box proved, and keep the proof repeatable 2026-10-15 18:55:01 +08:00
win-hwcheck.ps1 Record what the Windows box proved, and keep the proof repeatable 2026-10-15 18:55:01 +08:00
win-sync.sh Ask NTFS for stored bytes, not for allocated clusters 2026-10-15 17:25:17 +08:00
win-tui-capture.sh Say which console a frame was judged on, and stop blaming the interface for the shell 2026-10-15 22:28:49 +08:00
win-tui-clean.ps1 The instruments that measured the two lies, on the box itself 2026-10-15 21:21:19 +08:00
win-tui-grow.ps1 The instruments that measured the two lies, on the box itself 2026-10-15 21:21:19 +08:00
win-tui-resize.py The instruments that measured the two lies, on the box itself 2026-10-15 21:21:19 +08:00
win-tui-run.ps1 Say which console a frame was judged on, and stop blaming the interface for the shell 2026-10-15 22:28:49 +08:00
win-tui-widths.ps1 The instruments that measured the two lies, on the box itself 2026-10-15 21:21:19 +08:00