diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-06 08:52:26 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-16 14:14:11 -0500 |
commit | 32bab0eae51b55898d1e2804e6614d9143840581 (patch) | |
tree | 67686cc8705aaf301695e8b66f50f613422b60b9 /include/cli.h | |
parent | 86cc3c5215fc6e3c2cb77ee162c22ad91dbfaff5 (diff) | |
download | u-boot-32bab0eae51b55898d1e2804e6614d9143840581.zip u-boot-32bab0eae51b55898d1e2804e6614d9143840581.tar.gz u-boot-32bab0eae51b55898d1e2804e6614d9143840581.tar.bz2 |
menu: Make use of CLI character processing
Avoid duplicating some of the escape-sequence processing here and use the
CLI function instead.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/cli.h')
-rw-r--r-- | include/cli.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/cli.h b/include/cli.h index 863519e..c777c90 100644 --- a/include/cli.h +++ b/include/cli.h @@ -14,12 +14,14 @@ * * @esc_len: Number of escape characters read so far * @esc_save: Escape characters collected so far - * @emit_upto: Next character to emit from esc_save (0 if not emitting) + * @emit_upto: Next index to emit from esc_save + * @emitting: true if emitting from esc_save */ struct cli_ch_state { int esc_len; char esc_save[8]; int emit_upto; + bool emitting; }; /** |