handle home and end keys in urxvt

This commit is contained in:
Jeff Huffman 2021-06-27 22:44:30 -04:00
parent 0f4f5b0228
commit ec62e11a72
No known key found for this signature in database
GPG Key ID: 7F1A93286A8960C7

View File

@ -1061,6 +1061,8 @@ static el_status_t meta(void)
case '4': tty_get(); return end_line(); /* End */ case '4': tty_get(); return end_line(); /* End */
case '5': tty_get(); return CSstay; /* PgUp */ case '5': tty_get(); return CSstay; /* PgUp */
case '6': tty_get(); return CSstay; /* PgDn */ 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 'A': return h_prev(); /* Up */
case 'B': return h_next(); /* Down */ case 'B': return h_next(); /* Down */
case 'C': return fd_char(); /* Left */ case 'C': return fd_char(); /* Left */