lazydocker icon indicating copy to clipboard operation
lazydocker copied to clipboard

Issue with Ghostty terminal in a ssh session

Open MatteoGauthier opened this issue 1 year ago • 2 comments

Describe the bug A clear and concise description of what the bug is.

root@vmi1840719:~# lzd
2024/12/26 22:54:03 An error occurred! Please create an issue at https://github.com/jesseduffield/lazydocker/issues

*exec.ExitError exit status 1
/home/runner/work/lazydocker/lazydocker/main.go:96 (0x9397d7)
/opt/hostedtoolcache/go/1.21.13/x64/src/runtime/internal/atomic/types.go:194 (0x43bc1b)
/opt/hostedtoolcache/go/1.21.13/x64/src/runtime/asm_amd64.s:1650 (0x46b9e1)

To Reproduce Steps to reproduce the behavior:

  1. Use Ghostty 1.0.0
  2. ssh to a server
  3. start lazydocker

Expected behaviour No crash

Desktop (please complete the following information):

  • OS: Linux vmi1840719.contaboserver.net 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • Lazydocker Version 0.24.1

Additional context In a ssh session, it works on my local machine on macOS

MatteoGauthier avatar Dec 26 '24 21:12 MatteoGauthier

workaround:

TERM=xterm-256color lazydocker

atkr avatar Dec 30 '24 14:12 atkr

I also encountered this issue, what worked for me was copying Ghostty's Terminfo to the remote machine as their docs describe:

https://ghostty.org/docs/help/terminfo#copy-ghostty's-terminfo-to-a-remote-machine

The issue is probably with the missing Terminfo, though the error message from lazydocker could make this clearer.

JonasGruenwald avatar Dec 31 '24 00:12 JonasGruenwald