docs: keyboard encoding

refs: https://github.com/wez/wezterm/issues/2152
This commit is contained in:
Wez Furlong committed 2022-06-21 09:36:59 -07:00
1 parent 1b2efe8c70
commit 55e63d867b
6 files changed
+96 -16

No files matched your search

@@ -0,0 +1,16 @@
# `allow_win32_input_mode`
*Since: 20220319-142410-0fcdea07*
When set to `true`, wezterm will honor an escape sequence generated by the
Windows ConPTY layer to switch the [keyboard encoding](../../key-encoding.md)
to a proprietary scheme that has maximum compatibility with win32 console
applications.
See also [Improved Keyboard Handling in ConPTY](https://github.com/microsoft/terminal/blob/main/doc/specs/%234999%20-%20Improved%20keyboard%20handling%20in%20Conpty.md).
*Since: nightly builds only*
The default for `allow_win32_input_mode` is now true.
@@ -1,20 +1,14 @@
# `enable_csi_u_key_encoding = false`
This option affects how key presses are fed to the terminal; after processing
any key binding assignments, if the key didn't match an assignment it is passed
down to the terminal which then encodes the key press as a byte sequence to
send to the application running in the terminal.
When set to `true`, the [keyboard encoding](../../key-encoding.md) will be
changed to use the scheme that is [described
here](http://www.leonerd.org.uk/hacks/fixterms/).
By default, wezterm aims to be compatible with the encoding used by `xterm`.
In that encoding scheme there are some key combinations that have an ambiguous
representation.
Setting `enable_csi_u_key_encoding = true` will switch to an alternative
encoding scheme that is [described here](http://www.leonerd.org.uk/hacks/fixterms/)
that removes the ambiguity in a mostly-backwards-compatible way, but that
requires that applications also know about this encoding scheme to have
the best results.
It is not recommended to enable this option as it does change the behavior of
some keys in backwards incompatible ways and there isn't a way for applications
to detect or request this behavior.
The default for this option is `false`.
Note that [allow_win32_input_mode](allow_win32_input_mode.md) takes
precedence over this option.
@@ -0,0 +1,8 @@
# `enable_kitty_keyboard = false`
*Since: nightly builds only*
When set to `true`, wezterm will honor kitty keyboard protocol escape
sequences that modify the [keyboard encoding](../../key-encoding.md).