tui not working well with emacs-libvterm. claude and codex work fine #1880

Closed
opened 2026-02-16 17:33:03 -05:00 by yindo · 5 comments
Owner

Originally created by @nathants on GitHub (Sep 29, 2025).

Originally assigned to: @adamdotdevin on GitHub.

just noticed that opencode doesn't work well in emacs-libvterm.

i recently switched to emacs-libvterm from emacs-multiterm which didn't support claude or codex at all. they both work great with emacs-libvterm.

just re-installed opencode to give it a try, and it doesn't work at all.

not sure if this is emacs-libvterm only or all libvterms.

not a huge deal, just fyi. keep up the good work 🫡

Image
Originally created by @nathants on GitHub (Sep 29, 2025). Originally assigned to: @adamdotdevin on GitHub. just noticed that opencode doesn't work well in emacs-libvterm. i recently switched to emacs-libvterm from emacs-multiterm which didn't support claude or codex at all. they both work great with emacs-libvterm. just re-installed opencode to give it a try, and it doesn't work at all. not sure if this is emacs-libvterm only or all libvterms. not a huge deal, just fyi. keep up the good work 🫡 <img width="2559" height="1599" alt="Image" src="https://github.com/user-attachments/assets/2bd87397-f24c-4719-9776-80ca397b0868" />
yindo closed this issue 2026-02-16 17:33:03 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 29, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2843: Similar TUI rendering issues in specific terminal environments (SSH via iPad + Blink)
  • #2762: Unusable scrambled TUI in certain Linux terminal environments
  • #2697: TUI display problems after prompts in Linux terminals
  • #2700: Visual TUI bugs on startup in specific terminal configurations
  • #2801: Theme/display issues in Zed's terminal environment

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Sep 29, 2025): This issue might be a duplicate of existing issues. Please check: - #2843: Similar TUI rendering issues in specific terminal environments (SSH via iPad + Blink) - #2762: Unusable scrambled TUI in certain Linux terminal environments - #2697: TUI display problems after prompts in Linux terminals - #2700: Visual TUI bugs on startup in specific terminal configurations - #2801: Theme/display issues in Zed's terminal environment Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 29, 2025):

interesting thx for raising

@rekram1-node commented on GitHub (Sep 29, 2025): interesting thx for raising
Author
Owner

@veracioux commented on GitHub (Oct 8, 2025):

@nathants Here's a workaround that worked for me:

  (setq shell-default-term-shell "screen <YOUR SHELL HERE>")

The issue seems to be that Emacs vterm doesn't update the terminal window size (tput cols and tput rows don't change when you resize the window).

I guess Claude and Codex work because they aren't really TUI apps.

@veracioux commented on GitHub (Oct 8, 2025): @nathants Here's a workaround that worked for me: ``` (setq shell-default-term-shell "screen <YOUR SHELL HERE>") ``` The issue seems to be that Emacs vterm doesn't update the terminal window size (`tput cols` and `tput rows` don't change when you resize the window). I guess Claude and Codex work because they aren't really TUI apps.
Author
Owner

@paralin commented on GitHub (Oct 9, 2025):

Duplicate of #431

Fixed by setting the "system" theme:

Write to ~/.config/opencode/opencode.jsonc

{
  "$schema": "https://opencode.ai/config.json",
  "theme": "system"
}
@paralin commented on GitHub (Oct 9, 2025): Duplicate of #431 Fixed by setting the "system" theme: Write to ~/.config/opencode/opencode.jsonc ```json { "$schema": "https://opencode.ai/config.json", "theme": "system" } ```
Author
Owner

@rekram1-node commented on GitHub (Oct 9, 2025):

wow nice find didn't see that old issue.

Closing as dup thanks @paralin

@rekram1-node commented on GitHub (Oct 9, 2025): wow nice find didn't see that old issue. Closing as dup thanks @paralin
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1880