X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/c647afca0ab5d67de1c18b52b4e50262fcb73425..d64e55f23b1e865c51ab27c034c4698267f05e76:/include/cli_readline.h diff --git a/include/cli_readline.h b/include/cli_readline.h index 4471568..0ce28a5 100644 --- a/include/cli_readline.h +++ b/include/cli_readline.h @@ -1,15 +1,18 @@ /* - * (C) Copyright 2014 Leo C. + * (C) Copyright 2014-2016 Leo C. * * (C) Copyright 2014 Google, Inc * Simon Glass * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0 */ #ifndef CLI_READLINE_H #define CLI_READLINE_H +#include "common.h" +#include + extern char console_buffer[]; /* console I/O buffer */ /** @@ -18,9 +21,10 @@ 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 @@ -44,7 +48,8 @@ int cli_readline(const FLASH char *const prompt); * 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 */