1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Support the ^[[1~ for Home and ^[[4~ for End escape sequences in sh(1).

This commit is contained in:
Jonas 'Sortie' Termansen 2017-09-30 14:58:41 +02:00
parent ca2969b033
commit 48e41b36a3

View file

@ -611,8 +611,12 @@ void edit_line(struct edit_line* edit_state)
edit_line_show(edit_state);
} break;
case '~':
if ( params[0] == 1 )
edit_line_type_home(edit_state);
if ( params[0] == 3 )
edit_line_type_delete(edit_state);
if ( params[0] == 4 )
edit_line_type_end(edit_state);
break;
}
escape = 0;