diff options
-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" |