* (C) Copyright 2014 Google, Inc
* Simon Glass <sjg@chromium.org>
*
- * SPDX-License-Identifier: GPL-2.0+
+ * SPDX-License-Identifier: GPL-2.0
*/
#ifndef CLI_READLINE_H
#define CLI_READLINE_H
+#include "common.h"
+#include <stdbool.h>
+
extern char console_buffer[]; /* console I/O buffer */
/**
* This is a convenience function which calls cli_readline_into_buffer().
*
* @prompt: Prompt to display
+ * @enable_history: Use history buffer if true
* @return command line length excluding terminator, or -ve on error
*/
-int cli_readline(const FLASH char *const prompt);
+int cli_readline(const FLASH char *const prompt, bool enable_history);
/**
* readline_into_buffer() - read a line into a buffer
* parameter), then -2 is returned. If a break is detected (Ctrl-C) then
* -1 is returned.
*/
-//int cli_readline_into_buffer(const char *const prompt, char *buffer, int timeout);
+//int cli_readline_into_buffer(const char *const prompt, char *buffer,
+// int timeout, bool enable_history);
#endif /* CLI_READLINE_H */