[PATCH 1/2] cli: allow verbatim character entry with CTRL-v

Simon Glass sjg at chromium.org
Thu Jan 30 03:17:40 CET 2020


On Sun, 12 Jan 2020 at 09:33, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> Up to now the U-Boot console does not allow to add a control character to
> the line buffer. In Bash and Vim we can use CTRL-v for this purpose.
>
> Add support for CTRL-v for verbatim entry of characters.
>
> To keep things simple, while editing control characters are displayed as
> simple characters, e.g. ESC (0x1b) is displayed as [ and not as ^[.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  common/cli_readline.c | 38 +++++++++++++++++++++++++++++++++++---
>  1 file changed, 35 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list