Closed AddictArts closed 1 year ago
Hmm, interesting. Does it happen with a non-preview version of the terminal?
If you are able to compile Rust code yourself, could you try to clone this repo, and run cargo run
in the folder examples/print_key
and see what pressing ?
prints?
I noticed the same thing in Alacritty on Windows. Using the crokey example, I get the following output when pressing ? (using SHIFT and /), ESC and CTRL+C in order.
C:\Users\-snip-\Projects\Other\crokey\examples\print_key〉cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Running `C:\Users\-snip-\Projects\Other\crokey\target\debug\print_key.exe`
Type any key combination (remember that your terminal intercepts many ones)
There's no help on this app
You typed Esc
Arg! You savagely killed me with a Ctrl-c
So it seems that the question-mark gets correctly passed to the terminal. The crokey example handles both key('?')
and key(shift-'?')
. Perhaps the Windows terminal sends the latter? If you run tere
with --map "shift-?:Help"
, does it work?
Passing the --map parameter seems to fix the problem on both Alacritty and Windows Terminal.
This is now fixed in v1.3.1.
In Terminal Preview the
?
does not trigger theHelp
action, instead it searches.To work around this use
--map Ctrl-h:Help
or any other mapping, I believe a modifier likeCtrl
is needed others it will search.Or