diff options
author | Tianyu Geng <tgeng@google.com> | 2018-02-05 14:20:50 -0800 |
---|---|---|
committer | Tianyu Geng <tgeng@google.com> | 2018-02-05 14:20:50 -0800 |
commit | 63d7a01347184f23a6ffb5414abb0a7e98bafa66 (patch) | |
tree | bc434f78a976e14c831f4f73193b6c661b132b62 | |
parent | 919bae54f53817043f1285034257e05f4a3e2b74 (diff) |
Support cursor jumping with Home and End keys
-rw-r--r-- | src/tty_interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tty_interface.c b/src/tty_interface.c index da9c5f1..3a063f9 100644 --- a/src/tty_interface.c +++ b/src/tty_interface.c @@ -279,6 +279,8 @@ static const keybinding_t keybindings[] = {{"\x7f", action_del_char}, /* DEL */ {"\x1b[D", action_left}, /* LEFT */ {"\x1bOC", action_right}, /* RIGHT */ {"\x1b[C", action_right}, /* RIGHT */ + {"\x1b[1~", action_beginning}, /* HOME */ + {"\x1b[4~", action_end}, /* END */ {"\x1b[A", action_prev}, /* UP */ {"\x1bOA", action_prev}, /* UP */ {"\x1b[B", action_next}, /* DOWN */ |