Tags: nooga/let-go
Tags
chore: remove accidentally committed variadic scratch files (#201) `test_variadic.lg` and `debug_variadic.lg` are identical 2-line scratch files that landed in the repo root via #85 alongside the lginterop work. Nothing in the Makefile, scripts, or source references either of them. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Strip ANSI escapes on plan9
rio doesn't render ANSI escape sequences, so the colored error reporter
and the legacy test macro's PASS/FAIL labels showed up as literal
[1;31m / [32m garbage on plan9.
Fix in two layers:
- Go-side error formatter (pkg/vm/errfmt.go) now uses tagged
constants. New pkg/vm/ansi.go (!plan9) holds the real escapes;
pkg/vm/ansi_plan9.go (plan9) stubs them to "". errfmt.go
concatenates the constants instead of inline \x1b literals.
- Let-go-side: a new core var *ansi?* (default true) signals whether
the host renders ANSI. term_plan9.go's installTermNS flips it to
false on plan9. The legacy `test` macro now picks plain or colored
PASS/FAIL labels based on *ansi?*. core_compiled.lgb regenerated.
PreviousNext