dietline: Fix HOME key when used from screen/tmux

This commit is contained in:
dequis 2015-05-10 20:05:48 -03:00 committed by pancake
parent 75ab441ed7
commit a4eb454514

View File

@ -1140,7 +1140,12 @@ R_API const char *r_line_readline_cb(RLineReadCallback cb, void *user) {
#endif
break;
case 0x31: // control + arrow
r_cons_readchar ();
ch = r_cons_readchar ();
if (ch == 0x7e) { // HOME in screen/tmux
// corresponding END is 0x34 below (the 0x7e is ignored there)
I.buffer.index = 0;
break;
}
r_cons_readchar ();
ch = r_cons_readchar ();
switch (ch) {