mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-21 05:05:48 +00:00
dietline: Fix HOME key when used from screen/tmux
This commit is contained in:
parent
75ab441ed7
commit
a4eb454514
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user