mcfly
mcfly copied to clipboard
Arrow keys sometimes fail to navigate up/down query list
I have noticed that arrow keys sometimes fail to navigate up and down in a search list. Can you give an idea of where to look in the code to track this bug down? My Rust is still a bit rusty.
Steps to reproduce:
- Open new terminal
- Ctrl+R, can only navigate with PgUp/PgDn
echo "-" | less,qto quit- Ctrl+R, can now navigate with arrow keys
I expected this to involve some kind of $TERMCAP issue, but the fact that running less has a lasting effect is perplexing.
Suckless Terminal (custom build)
Screen version 4.08.00 (GNU)
GNU bash, version 4.4.23(1)-release
Hey @CreativeCactus, sorry for the delay! I feel like I've seen that once or twice on Linux. I don't think I've seen it on my Mac, at least not in zsh. I don't know what would cause it.
You could try adding a debug line that prints to the screen (or, if that isn't showing up because of the mode, to a file) with each keycode received here: https://github.com/cantino/mcfly/blob/master/src/interface.rs#L362
I am having the same issue with broot. See https://github.com/Canop/broot/issues/168