mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 00:08:04 +02:00
Revert change to make alt+bs emit werase
Most linux terminals emit ESC+BS instead. And iTerm2 in Esc+ mode also emits this. So go with the majority for greatest ecosystem compatibility. Fixes #264
This commit is contained in:
@@ -30,8 +30,7 @@ alt_codes = {
|
||||
defines.GLFW_KEY_TAB: b'\033\t',
|
||||
defines.GLFW_KEY_ENTER: b'\033\r',
|
||||
defines.GLFW_KEY_ESCAPE: b'\033\033',
|
||||
# alt+bs matches iTerm and gnome-terminal
|
||||
defines.GLFW_KEY_BACKSPACE: b'\x17'
|
||||
defines.GLFW_KEY_BACKSPACE: b'\033\177'
|
||||
}
|
||||
shift_alt_codes = alt_codes.copy()
|
||||
shift_alt_codes[defines.GLFW_KEY_TAB] = key_as_bytes('kcbt')
|
||||
|
||||
Reference in New Issue
Block a user