Attempt to add support for HOME and END in message lists

This commit is contained in:
Andrew Pamment 2017-09-09 17:49:23 +10:00
parent 6e1f6ad0d4
commit 1b268b6d07

View File

@ -2262,6 +2262,19 @@ void list_messages(struct user_record *user) {
s_printf("\e[%d;5H", i - start + 1); s_printf("\e[%d;5H", i - start + 1);
} }
} else if (c == 70) {
// END KEY
i = msghs->msg_count;
start = i - 22;
if (start < 0) {
start = 0;
}
redraw = 1;
} else if (c == 72) {
// HOME KEY
i = 1;
start = 0;
redraw = 1;
} }
} }
} else if (c == 13) { } else if (c == 13) {