1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-11 03:27:05 +03:00

fix delete

This commit is contained in:
Wez Furlong 2018-02-24 15:58:38 -08:00
parent abc06620b8
commit 9737646978

View File

@ -552,6 +552,8 @@ impl TerminalState {
// TODO: also respect self.application_keypad
let to_send = match (key, ctrl, alt, shift, self.application_cursor_keys) {
// Delete
(Char('\x7f'), ..) => "\x1b[3~",
(Char(c), CTRL, _, SHIFT, _) if c <= 0xff as char && c > 0x40 as char => {
// If shift is held we have C == 0x43 and want to translate
// that into 0x03