diff options
author | Tianyu Geng <tgeng@google.com> | 2018-03-19 20:53:28 -0700 |
---|---|---|
committer | Tianyu Geng <tgeng@google.com> | 2018-03-19 20:53:28 -0700 |
commit | 70d2f4007224a5d9da1929c6d662b65aa16af014 (patch) | |
tree | 051bbbdb1c5c94550063d6d995c4b877400a1daf /src | |
parent | 63d7a01347184f23a6ffb5414abb0a7e98bafa66 (diff) |
Fix home/end support on Mac
Diffstat (limited to 'src')
-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 3a063f9..b4f6c61 100644 --- a/src/tty_interface.c +++ b/src/tty_interface.c @@ -280,7 +280,9 @@ static const keybinding_t keybindings[] = {{"\x7f", action_del_char}, /* DEL */ {"\x1bOC", action_right}, /* RIGHT */ {"\x1b[C", action_right}, /* RIGHT */ {"\x1b[1~", action_beginning}, /* HOME */ + {"\x1b[H", action_beginning}, /* HOME */ {"\x1b[4~", action_end}, /* END */ + {"\x1b[F", action_end}, /* END */ {"\x1b[A", action_prev}, /* UP */ {"\x1bOA", action_prev}, /* UP */ {"\x1b[B", action_next}, /* DOWN */ |