diff options
author | Leo C | 2016-08-29 21:07:21 +0200 |
---|---|---|
committer | Leo C | 2016-08-29 21:07:21 +0200 |
commit | 66e23a9dc242ecc830902867c63c37745a4d5c07 (patch) | |
tree | 6a7e77f4f46e19e230ff0c5299df1e1abeb1676a | |
parent | 122660398b4c99ebad726a80a76e281cb55fe5dc (diff) | |
download | z180-stamp-66e23a9dc242ecc830902867c63c37745a4d5c07.zip |
Prompt
-rw-r--r-- | avr/cli.c | 2 | ||||
-rw-r--r-- | include/config.h | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -404,7 +404,7 @@ void cli_loop(void) int rc = 1; for (;;) { - len = cli_readline(PSTR(CONFIG_SYS_PROMPT), 1); + len = cli_readline(lastcommand ? PSTR(CONFIG_SYS_PROMPT_REPEAT) : PSTR(CONFIG_SYS_PROMPT), 1); flag = 0; /* assume no special flags for now */ if (len > 0) { diff --git a/include/config.h b/include/config.h index c276e80..32d3b5b 100644 --- a/include/config.h +++ b/include/config.h @@ -65,7 +65,8 @@ #define CONFIG_SYS_MAXARGS 20 #define CONFIG_SYS_ENV_NAMELEN 16 -#define CONFIG_SYS_PROMPT "=> " +#define CONFIG_SYS_PROMPT "-> " +#define CONFIG_SYS_PROMPT_REPEAT "=> " #define CONFIG_ESC_CHAR ('^'-0x40) #define CONFIG_SYS_FBOOTSIG "Peda" |