Skip to content

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

Closed as duplicate

Description

@nathants

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

Activity

  1. github-actions commented on Sep 29, 2025

    @github-actions
    Contributor

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

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

  2. rekram1-node commented on Sep 29, 2025

    @rekram1-node
    Contributor

    interesting thx for raising

  3. veracioux commented on Oct 8, 2025

    @veracioux
    Contributor

    @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.

  4. paralin commented on Oct 9, 2025

    @paralin
    Contributor

    Duplicate of #431

    Fixed by setting the "system" theme:

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

    {
      "$schema": "https://opencode.ai/config.json",
      "theme": "system"
    }
  5. rekram1-node commented on Oct 9, 2025

    @rekram1-node
    Contributor

    wow nice find didn't see that old issue.

    Closing as dup thanks @paralin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions