Characters are encoding gibberish all over the frontend
Description
GNOME Terminal v3.28.3-4.el8 has problems rendering the TUI.
See screenshot. It's unusable by me and I've downgraded to v0.15.31.
OpenCode version
1.0.61
Steps to reproduce
- Use GNOME Terminal v3.28.3-4.el8
opencode- be greeted with screen on screenshot
Screenshot and/or share link
Operating System
RedHat Enterprise Linus 8.10
Terminal
GNOME Terminal v3.28.3-4.el8
This issue might be a duplicate of existing issues. Please check:
- #3671: 1.0+ is unusable in non-truecolor terminal - Similar terminal rendering issues with older terminal versions
- #2256: Bug [Visual]: TUI populated with gibberish upon copying - Same GNOME Terminal version experiencing gibberish characters
- #2593: [bug] opencode produces gabled text when input containing non-ascii characters - Character encoding issues causing garbled text
Feel free to ignore if none of these address your specific case.
It thinks the terminal supports explicit width for some reason. These are explicit width sequences. The capability detection seems to be off here. I'll check that.
Is there a solution to this problem? I am currently experiencing this issue in the latest version as well.
Install a different terminal, such as Konsole