]> git.giacomolli.uk - onechat/commit
Show styled replies only on terminal output
authorAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 02:38:19 +0000 (23:38 -0300)
committerAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 02:52:52 +0000 (23:52 -0300)
commit0bc8db71aa5d2c55b215a7a15b073bb85a1172eb
treec23db9ff2a946e233b838ed932541f10892372ec
parent209df5ce842e24b3c6e99a322fe3d98ab2df720b
Show styled replies only on terminal output

Replies and work reports use the terminal width for Markdown rendering.
Other event kinds and output to files or pipes keep their text. Each
event reads the width again, with 80 columns when a terminal reports
zero. Tests use isolated terminal descriptors and fake events, including
single-column and very narrow table headers.
README.rst
terminal.go
terminal_markdown.go
terminal_markdown_test.go
terminal_test.go