You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
Output of std.progress and tree line graphics output of the build runner are broken in Emacs shell-mode and compilation-mode.
Here's how to fix this:
Configure Emacs
Tested with Emacs 30.1
;; Set TERM for comint-derived modes like shell-mode
(setq comint-terminfo-terminal "dumb-emacs-ansi")
;; Enable basic ANSI escape sequence support for compilation-mode
(with-eval-after-load'compile
(add-to-list'compilation-environment"TERM=dumb-emacs-ansi")
(add-hook'compilation-filter-hook'ansi-color-compilation-filter))
Apply this patchset (diff) and build Zig. Tested with Zig 0.14.
It fixes tree line graphics and enables Emacs-compatible progress output in a single line when $TERM == dumb-emacs-ansi. Asciinema screencast.