Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gotop doesn't work in tmux #256

Closed
GustavoJCL opened this issue Jan 16, 2024 · 3 comments
Closed

gotop doesn't work in tmux #256

GustavoJCL opened this issue Jan 16, 2024 · 3 comments

Comments

@GustavoJCL
Copy link

gotop version:

gotop -V, or if built from source, git rev-parse HEAD
gotop v4.2.0 (Hadean)

OS/Arch:

Linux: uname -or, OSX: sw_vers; Windows: systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
Arch Linux 6.6.10-zen-1-zen GNU/Linux

Terminal emulator:

e.g. iTerm, kitty, xterm, PowerShell
kitty

Any relevant hardware info:

If the issue is clearly related to a specific piece of hardware, e.g., the network

tmux version:

tmux -V, if using tmux
tmux 3.3a
Also please copy or attach ~/.local/state/gotop/errors.log if it exists and contains logs:
cat ~/.cache/gotop/errors.log
06:13:55 remote.go:74: Remote: no remote URL provided; disabling extension
06:13:55 temp_nix.go:35: error opening smart info for nvme0n1: unknown drive type
termbox: error while reading terminfo data: termbox: unsupported terminal
image

@Kqzz
Copy link

Kqzz commented Jan 21, 2024

from some quick research, this seems like a kitty + tmux issue, not a gotop specific one.
if you run echo $TERM while in tmux, what is the output?

one potential fix is changing the TERM env variable while in tmux. I found an issue that appears related here that may offer some assistance: jesseduffield/lazygit#570

@davidwincent
Copy link

Have the same problem,

echo $TERM
tmux-256color

❯ gotop
panic: termbox: error while reading terminfo data: termbox: unsupported terminal

goroutine 1 [running]:
main.runUI()
        /home/dawndiy/workspace/golang/src/github.com/dawndiy/gotop/parts/app/go/src/github.com/dawndiy/gotop/main.go:535 +0x1144
main.main()
        /home/dawndiy/workspace/golang/src/github.com/dawndiy/gotop/parts/app/go/src/github.com/dawndiy/gotop/main.go:676 +0x20

Change value of TERM to start gotop successfully,

TERM=xterm-256color gotop

@GustavoJCL
Copy link
Author

thanks, now gotop work fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants