diff options
author | Leo C | 2016-04-22 11:21:03 +0200 |
---|---|---|
committer | Leo C | 2016-04-22 11:21:03 +0200 |
commit | 8ed660166ce9cdeb63b4cf710c663407b7ec9128 (patch) | |
tree | 57518c1b7ed4c6f3f28a23e16a6f165b998527f2 /include | |
parent | c647afca0ab5d67de1c18b52b4e50262fcb73425 (diff) | |
download | z180-stamp-8ed660166ce9cdeb63b4cf710c663407b7ec9128.zip |
Store only command line input in history buffer, but not data (i.e mm command)
Diffstat (limited to 'include')
-rw-r--r-- | include/cli.h | 2 | ||||
-rw-r--r-- | include/cli_readline.h | 11 | ||||
-rw-r--r-- | include/config.h | 2 | ||||
-rw-r--r-- | include/debug.h | 2 |
4 files changed, 11 insertions, 6 deletions
diff --git a/include/cli.h b/include/cli.h index 4920cc4..20e852f 100644 --- a/include/cli.h +++ b/include/cli.h @@ -4,7 +4,7 @@ * (C) Copyright 2014 Google, Inc * Simon Glass <sjg@chromium.org> * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0 */ #ifndef CLI_H diff --git a/include/cli_readline.h b/include/cli_readline.h index 4471568..0e165cc 100644 --- a/include/cli_readline.h +++ b/include/cli_readline.h @@ -4,12 +4,15 @@ * (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 */ /** @@ -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 */ diff --git a/include/config.h b/include/config.h index 1501989..efc793e 100644 --- a/include/config.h +++ b/include/config.h @@ -1,7 +1,7 @@ /* * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de> * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0 */ #ifndef CONFIG_H diff --git a/include/debug.h b/include/debug.h index 39c15b0..0ee0129 100644 --- a/include/debug.h +++ b/include/debug.h @@ -4,7 +4,7 @@ * (C) Copyright 2000-2009 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0 */ |