readline: make ctrl-u to work like linux console
currtly, the ctrl-u discards the whole line, in most linux
boxes, ctrl-u just erase characters before cursor to the
begginning of the line. this patch make ctrl-u to do this.

Signed-off-by: DU HUANPENG <u74147@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 4c8af43 commit d4eb2645610625b3b6f5179a319935d3fc7c6829
@DU HUANPENG DU HUANPENG authored on 16 Oct 2019
Sascha Hauer committed on 18 Oct 2019
Showing 1 changed file
View
lib/readline.c