1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 22:01:47 +03:00
wezterm/termwiz/src
Wez Furlong ce23ee9eb8 input: generate win32-input-mode for a subset of keys
This commit causes the terminal to emit win32-input-mode encoded key up
and down events for a limited subset of keys When win32-input-mode is
enabled.

We limit them to keys where we know the VK key code equivalent,
and where those keys are either not representable (eg: modifier
only key events), or may generate ambiguous output (eg: CTRL-SPACE
in different keyboard layouts).

However, in my experiments, modifier only key presses confuse powershell
and cause it to emit `@`, so I've disabled that in the code for now.

refs: https://github.com/wez/wezterm/issues/318
refs: https://github.com/wez/wezterm/issues/1509
refs: https://github.com/wez/wezterm/issues/1510
2022-01-06 10:19:58 -07:00
..
caps termwiz: avoid file io when terminfo db is pre-filled 2021-06-13 09:06:22 -07:00
escape termwiz/term: introduce KeyboardEncoding enum, existence of win32-input-mode 2022-01-06 07:50:49 -07:00
lineedit introduce unicode_version config 2021-11-25 09:00:45 -07:00
render New optional argument 'doNotMoveCursor' for iTerm2 images. This 2021-12-23 07:07:08 -08:00
surface force clusters to break around cursor boundary 2022-01-05 09:20:11 -07:00
terminal write -> write_all, h/t clippy via @CGMossa 2022-01-05 18:52:14 -07:00
widgets Remove unused Error import 2021-09-29 20:58:47 -07:00
cell.rs termwiz: clamp grapheme column width to 2 2021-12-29 21:38:33 -07:00
cellcluster.rs force clusters to break around cursor boundary 2022-01-05 09:20:11 -07:00
color.rs termwiz: s/Fuschia/Fuchsia/g 2021-12-21 20:38:59 -07:00
emoji_presentation.rs termwiz: improve performance of emoji presentation lookup 2021-08-11 23:06:16 -07:00
emoji.rs Respect emoji-variation-sequences.txt 2021-11-25 14:37:24 -07:00
error.rs filedescriptor: remove anyhow from public interface 2021-05-23 14:24:01 -07:00
hyperlink.rs lua: add window::effective_config() method 2021-02-27 12:39:22 -08:00
image.rs term: introduce right&bottom padding to ImageCell 2021-12-23 07:26:49 -07:00
input.rs input: generate win32-input-mode for a subset of keys 2022-01-06 10:19:58 -07:00
istty.rs remove some extern crates 2019-05-26 08:27:43 -07:00
keymap.rs clippy 2019-02-24 12:01:08 -08:00
lib.rs termwiz: import widechar_width wcwidth implementation 2021-11-24 18:11:59 -07:00
macros.rs termwiz: do not depend on derive_builder 2020-02-11 07:45:50 -08:00
readbuf.rs restructure termwiz tree prior to merging into wezterm repo 2018-08-05 07:55:30 -07:00
rgb.txt Remove dep on palette for resolving color names 2020-02-07 08:58:53 -08:00
widechar_width.rs termwiz: sync with upstream wichdechar_width 2022-01-01 08:18:41 -07:00