summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2018-04-21 11:43:30 -0700
committerGitHub <noreply@github.com>2018-04-21 11:43:30 -0700
commit2be07b5ff2ee92eebbc5984dbbb5d98d3270e318 (patch)
tree83f25d8bb422f2b4c4ec9505cf7b978508875836 /src
parent47609dbf73789bc28289576a12177965c04ef49b (diff)
parent70d2f4007224a5d9da1929c6d662b65aa16af014 (diff)
Merge pull request #71 from tgeng/master
Support cursor jumping with Home and End keys
Diffstat (limited to 'src')
-rw-r--r--src/tty_interface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tty_interface.c b/src/tty_interface.c
index 6e09852..a7d506e 100644
--- a/src/tty_interface.c
+++ b/src/tty_interface.c
@@ -279,6 +279,10 @@ 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[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 */