wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
18.18k stars 813 forks source link

`tmate` does not work on wezterm #2859

Closed nahuakang closed 1 year ago

nahuakang commented 1 year ago

What Operating System(s) are you seeing this problem on?

Linux Wayland

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20221119-145034-49b9839f

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

No, and I'll explain why below

Describe the bug

Running tmate works on my other terminal emulators but not on wezterm:

> tmate
lost server

To Reproduce

Configuration

local wezterm = require 'wezterm'

return { color_scheme = "Gruvbox dark, medium (base16)",

font = wezterm.font_with_fallback{
    'Comic Code Ligatures',
    'FiraCode Nerd Font',
    'JetBrains Mono',
},

initial_cols=160,
initial_rows=48,

leader = { key = 'a', mods = 'CTRL', timeout_milliseconds = 1000 },
keys = {
    { key = 'a', mods = 'LEADER|CTRL',  action = wezterm.action.SendString '\x01' },
    { key = '|', mods = 'LEADER|SHIFT', action = wezterm.action.SplitHorizontal {domain = 'CurrentPaneDomain'} },
    { key = '-', mods = 'LEADER',       action = wezterm.action.SplitVertical {domain = 'CurrentPaneDomain'} },
    { key = 'z', mods = 'LEADER',       action = "TogglePaneZoomState" },
    { key = "t", mods = "LEADER",       action=wezterm.action{SpawnTab="CurrentPaneDomain"} },
    { key = "h", mods = "LEADER",       action=wezterm.action{ActivatePaneDirection="Left"} },
    { key = "j", mods = "LEADER",       action=wezterm.action{ActivatePaneDirection="Down"} },
    { key = "k", mods = "LEADER",       action=wezterm.action{ActivatePaneDirection="Up"} },
    { key = "l", mods = "LEADER",       action=wezterm.action{ActivatePaneDirection="Right"} },
    { key = "H", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Left", 5}} },
    { key = "J", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Down", 5}} },
    { key = "K", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Up", 5}} },
    { key = "L", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Right", 5}} },
    { key = "1", mods = "ALT",       action=wezterm.action{ActivateTab=0} },
    { key = "2", mods = "ALT",       action=wezterm.action{ActivateTab=1} },
    { key = "3", mods = "ALT",       action=wezterm.action{ActivateTab=2} },
    { key = "4", mods = "ALT",       action=wezterm.action{ActivateTab=3} },
    { key = "5", mods = "ALT",       action=wezterm.action{ActivateTab=4} },
    { key = "6", mods = "ALT",       action=wezterm.action{ActivateTab=5} },
    { key = "7", mods = "ALT",       action=wezterm.action{ActivateTab=6} },
    { key = "8", mods = "ALT",       action=wezterm.action{ActivateTab=7} },
    { key = "9", mods = "ALT",       action=wezterm.action{ActivateTab=8} },
},

enable_scroll_bar = true,
scrollback_lines = 3500,

warn_about_missing_glyphs=false,

}

Expected Behavior

Run tmate spins up a tmux with relevant tmate information.

Logs

Debug Overlay wezterm version: 20221119-145034-49b9839f OpenGL version: AMD RENOIR (DRM 3.42.0, 5.15.0-56-generic, LLVM 12.0.1) 4.6 (Compatibility Profile) Mesa 21.3.9 (git-78c96ae5b6) Enter lua statements or expressions and hit Enter. Press ESC or CTRL-D to exit 14:21:03.070 ERROR window::os::wayland::pointer > Unable to set cursor to xterm: cursor not found 14:21:03.078 ERROR window::os::wayland::pointer > Unable to set cursor to xterm: cursor not found 14:21:03.086 ERROR window::os::wayland::pointer > Unable to set cursor to xterm: cursor not found 14:21:03.096 ERROR window::os::wayland::pointer > Unable to set cursor to xterm: cursor not found 14:21:03.173 ERROR window::os::wayland::pointer > Unable to set cursor to xterm: cursor not found 14:21:03.279 ERROR window::os::wayland::pointer > Unable to set cursor to xterm: cursor not found

Anything else?

No response

wez commented 1 year ago

I don't know anything about tmate, what is it? Have you considered reporting this to the tmate folks to get their understanding on what is going wrong?

nahuakang commented 1 year ago

tmate is a fork of tmux for instant sharing of a shell session: https://tmate.io/. I haven't reported it to tmate because it works on Ubuntu's default terminal emulator and another terminal emulator. Would this be possibly an issue from tmate's side? :)

wez commented 1 year ago

There's no information here for me to act on; if tmate doesn't like wezterm, we need to understand what tmate doesn't like about it. There's only one of me and there are thousands of wezterm users, each with different environments. I cannot install and learn every possible piece of software that might run inside wezterm, in order to figure out how to troubleshoot and debug it. Please do talk to the tmate folks to get their assistance in understanding why tmate has a problem with wezterm, then we can coordinate and figure out a resolution for it.

nahuakang commented 1 year ago

Sure. I'll ask them about it. I can also close this and open it again in case of any update. Thanks for helping :)

goek-han commented 1 year ago

tmate 2.4.0 works on X11 with wezterm for me.

nahuakang commented 1 year ago

I'm using Wayland so maybe that's a reason? :thinking:

mo8it commented 1 year ago

I can confirm "Lost server". I am also on Wayland.

But I use Zellij. If you launch tmate inside Zellij, everything works fine. Weird :O But a workaround for now.

nahuakang commented 1 year ago

I can confirm that tmate works with zellij. This is a fine workaround for me :) No response from the folks at tmate though.

wez commented 1 year ago

Until we have information from tmate about why it exits, I'm considering this issue to be primarily a tmate issue with no direct action for me to take for now.

github-actions[bot] commented 1 year ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.