Re: [PATCH] readline: add ctrl-u (unix-line-discard)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 01, 2019 at 01:46:55PM +0100, Robert Karszniewicz wrote:
> Signed-off-by: Robert Karszniewicz <r.karszniewicz@xxxxxxxxx>
> ---
>  lib/readline.c | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks

Sascha

> 
> diff --git a/lib/readline.c b/lib/readline.c
> index 904a77639..d026af110 100644
> --- a/lib/readline.c
> +++ b/lib/readline.c
> @@ -290,6 +290,7 @@ int readline(const char *prompt, char *buf, int len)
>  			insert = !insert;
>  			break;
>  		case BB_KEY_ERASE_LINE:
> +		case CTL_CH('u'):
>  			BEGINNING_OF_LINE();
>  			ERASE_TO_EOL();
>  			break;
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux