summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo C2016-08-29 21:07:21 +0200
committerLeo C2016-08-29 21:07:21 +0200
commit66e23a9dc242ecc830902867c63c37745a4d5c07 (patch)
tree6a7e77f4f46e19e230ff0c5299df1e1abeb1676a
parent122660398b4c99ebad726a80a76e281cb55fe5dc (diff)
downloadz180-stamp-66e23a9dc242ecc830902867c63c37745a4d5c07.zip
Prompt
-rw-r--r--avr/cli.c2
-rw-r--r--include/config.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/avr/cli.c b/avr/cli.c
index 891a26a..922f9e1 100644
--- a/avr/cli.c
+++ b/avr/cli.c
@@ -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"