summaryrefslogtreecommitdiff
path: root/unix/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-10-12 00:19:00 +0100
committerDamien George <damien.p.george@gmail.com>2015-10-12 00:19:00 +0100
commit3aa7dd23c9206b983f0004ec63eb6be913f7332a (patch)
tree062360dec1932e277081b5f37d23edf51b780771 /unix/main.c
parentfccbe9aa4d83669d15d0109c604f66d1a4792421 (diff)
unix: Add exit and paste-mode hints to shell startup banner.
Thanks to @nyov for the initial patch.
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/main.c b/unix/main.c
index badbca1a9..d94544caa 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -153,7 +153,8 @@ STATIC char *strjoin(const char *s1, int sep_char, const char *s2) {
#endif
STATIC int do_repl(void) {
- mp_hal_stdout_tx_str("MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "; " MICROPY_PY_SYS_PLATFORM " version\n");
+ mp_hal_stdout_tx_str("MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "; "
+ MICROPY_PY_SYS_PLATFORM " version\nUse CTRL-D to exit, CTRL-E for paste mode\n");
#if MICROPY_USE_READLINE == 1