Print formatted output rather than raw ANSI escape sequences #396

Closed
opened 2026-02-16 17:26:35 -05:00 by yindo · 1 comment
Owner

Originally created by @pauldthomson on GitHub (Jun 29, 2025).

Originally assigned to: @adamdotdevin on GitHub.

When running a terraform command (e.g. terraform validate), the output prints with the raw ANSI escape sequences rather than the formatted text, e.g.:

Image

Can quite easily be reproduced by a simple bash script that just does:

echo -e "\x1b[31mhi\033[m"

and ask opencode to run it. Instead of a red "hi" we get the literal string.

Originally created by @pauldthomson on GitHub (Jun 29, 2025). Originally assigned to: @adamdotdevin on GitHub. When running a terraform command (e.g. `terraform validate`), the output prints with the raw ANSI escape sequences rather than the formatted text, e.g.: <img width="633" alt="Image" src="https://github.com/user-attachments/assets/845ef1ed-a716-4b62-b67e-2509168c77ef" /> Can quite easily be reproduced by a simple bash script that just does: ```bash echo -e "\x1b[31mhi\033[m" ``` and ask opencode to run it. Instead of a red "hi" we get the literal string.
yindo closed this issue 2026-02-16 17:26:35 -05:00
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#396