mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
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>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user