cli: Allow history to be disabled
When inputting text outside the command line we don't want history to be
accessible. Add an option to control this.
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/include/cli.h b/include/cli.h
index bbc5327..252bdb7 100644
--- a/include/cli.h
+++ b/include/cli.h
@@ -31,6 +31,7 @@
* @num: Current cursor position, where 0 is the start
* @eol_num: Number of characters in the buffer
* @insert: true if in 'insert' mode
+ * @history: true if history should be accessible
* @buf: Buffer containing line
* @prompt: Prompt for the line
*/
@@ -39,6 +40,7 @@
uint eol_num;
uint len;
bool insert;
+ bool history;
char *buf;
const char *prompt;
};