Skip to content

Commit

Permalink
handle home and end keys in urxvt
Browse files Browse the repository at this point in the history
  • Loading branch information
tejing1 committed Jun 28, 2021
1 parent 0f4f5b0 commit ec62e11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/editline.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,8 @@ static el_status_t meta(void)
case '4': tty_get(); return end_line(); /* End */
case '5': tty_get(); return CSstay; /* PgUp */
case '6': tty_get(); return CSstay; /* PgDn */
case '7': tty_get(); return beg_line(); /* Home (urxvt) */
case '8': tty_get(); return end_line(); /* End (urxvt) */
case 'A': return h_prev(); /* Up */
case 'B': return h_next(); /* Down */
case 'C': return fd_char(); /* Left */
Expand Down

0 comments on commit ec62e11

Please sign in to comment.