Bios-Marcel / cordless

The Discord terminal client you never knew you wanted.
BSD 3-Clause "New" or "Revised" License
1.65k stars 136 forks source link

Can't Navigate Containers with Arrow Keys in st (Part 2) #371

Closed JBlocklove closed 3 years ago

JBlocklove commented 3 years ago

This is the same issue as #247 , information is being copied here to reopen after the update to tcell v2.

How have you installed cordless

What happened

I can't seem to navigate containers using Alt+arrow from st

How do you reproduce this bug

I am using stas my terminal, which seems to relate to the issue. When I try on urxvt it works fine.

This issue occurs both with an unmodified install of st as well as with my somewhat customized one.

System information

Key Value
OS Arch
Architecture 5.9.8-arch1-1 (amd64)
Terminal st
Go version 1.15.4 linux/amd64
Bios-Marcel commented 3 years ago

This might be an issue with the terminfo used in https://github.com/gdamore/tcell. Maybe you should make an issue over there to let them know. As I believe we already tracked this down to tcell in the previous issue.

JBlocklove commented 3 years ago

Makes sense to me. I'll make an issue there.

JBlocklove commented 3 years ago

In poking around in some of their terminfo stuff, it actually appears that the issue is caused by both tmux (my terminal starts in tmux by default and I totally forgot about that) and st. Even in tmux the navigation works just fine in urxvt, but it also works fine in st without tmux. I'll still make an issue there, since it seems that it's interaction with tmux in st is still resulting in weird data being sent for ALT+arrow, but I'll close this now. Sorry for the trouble.