Filter editing in tmux: no cursor, no backspace
Hi,
I noticed the following problems when editing the filter (after pressing Enter on the main screen) when I'm running glances in tmux (TERM=screen-256color):
- There is no cursor displayed.
- Backspace doesn't work (neither does ^H or ^? or the Delete key).
- I can move the invisible cursor with the cursor Left and Right keys, and even ^A and ^E work. Editing is indeed in replace mode only (I agree with that issue that the default should be insert mode).
^U (to kill the line) doesn't work either, but this is true in a plain xterm as well, so it's probably simply a missing feature.
This means that if you need a shorter filter than the previous one used, or you want to clear it, you are out of options. You need to quit and restart glances.
Would it be possible to use readline here? It would mean automatically respecting inputrc settings and possibly offering completion (based on running processes).
Versions
- Glances & psutil (glances -V): Glances v3.1.3 with psutil v5.7.0
- LSB Version: 1.4
- Distributor ID: Arch
- Description: Arch Linux
- Release: rolling
- Codename: n/a
(I know there is a newer version out there, but I'm using the Arch package and prefer not to mess that up with a pip update.)
Source: nicolargo/glances