-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Alt-h/j/k/l not working when TERM not xterm* or vt220 #348
Comments
To make this fully portable the code would have to check the |
Just FTR, vim mode has been removed again in c9ecd0f. The way it was implemented caused too many issues elsewhere. |
I think there's a misunderstanding: AFAIU the bindings I'm talking about are just alternative bindings to the default ones. I didn't use a dedicated "vim mode". I'm using htop 3.0.2 and also tested with current master. Sorry, I wasn't aware of the difference of the vim key bindings and the vim mode. |
Hey there,
first, thanks for the htop-dev initiative. Cool to see this project going :)
After upgrading to htop 3.0.0 I noticed that some of the added vim bindings do not work for me. I think at least all
Alt-
bindings. I finally got some time to look at it to be able to provide at least some information.In my case
TERM
is set totmux-256color
oralacritty
(if not in tmux). I realized it works when usingxterm*
and was able to pin it down to how the keys are defined in CRT.chtop/CRT.c
Lines 687 to 706 in f704bae
When skipping the condition it works for other
TERM
values as well (btw even on VTs;TERM=linux
).I'm not an expert, so not sure what's a valid approach to fix it. Adding every possible
TERM
that supports these keys most probably isn't ;) Is it somehow possible to check the "capabilities" of a terminal emulator instead ofTERM
? Or is it safe nowadays to drop this condition without breaking htop for other systems (the condition dates back even before the initial git import 15 years ago (d6231ba). Touched 3 years ago (45f3769) to support for everything that starts withxterm
)?The text was updated successfully, but these errors were encountered: