diff options
author | Damien George <damien.p.george@gmail.com> | 2015-10-12 00:19:00 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-10-12 00:19:00 +0100 |
commit | 3aa7dd23c9206b983f0004ec63eb6be913f7332a (patch) | |
tree | 062360dec1932e277081b5f37d23edf51b780771 | |
parent | fccbe9aa4d83669d15d0109c604f66d1a4792421 (diff) | |
download | micropython-3aa7dd23c9206b983f0004ec63eb6be913f7332a.tar.gz micropython-3aa7dd23c9206b983f0004ec63eb6be913f7332a.zip |
unix: Add exit and paste-mode hints to shell startup banner.
Thanks to @nyov for the initial patch.
-rw-r--r-- | tests/cmdline/repl_basic.py.exp | 1 | ||||
-rw-r--r-- | tests/cmdline/repl_cont.py.exp | 1 | ||||
-rw-r--r-- | tests/cmdline/repl_emacs_keys.py.exp | 1 | ||||
-rw-r--r-- | tests/feature_check/repl_emacs_check.py.exp | 1 | ||||
-rw-r--r-- | unix/main.c | 3 |
5 files changed, 6 insertions, 1 deletions
diff --git a/tests/cmdline/repl_basic.py.exp b/tests/cmdline/repl_basic.py.exp index 1b4a497032..96b8c28dce 100644 --- a/tests/cmdline/repl_basic.py.exp +++ b/tests/cmdline/repl_basic.py.exp @@ -1,4 +1,5 @@ MicroPython \.\+ version +Use \.\+ >>> # basic REPL tests >>> print(1) 1 diff --git a/tests/cmdline/repl_cont.py.exp b/tests/cmdline/repl_cont.py.exp index 47a126643e..74f0f4197f 100644 --- a/tests/cmdline/repl_cont.py.exp +++ b/tests/cmdline/repl_cont.py.exp @@ -1,4 +1,5 @@ MicroPython \.\+ version +Use \.\+ >>> # check REPL allows to continue input >>> 1 \\\\ ... + 2 diff --git a/tests/cmdline/repl_emacs_keys.py.exp b/tests/cmdline/repl_emacs_keys.py.exp index 6edaf28130..6102c19639 100644 --- a/tests/cmdline/repl_emacs_keys.py.exp +++ b/tests/cmdline/repl_emacs_keys.py.exp @@ -1,4 +1,5 @@ MicroPython \.\+ version +Use \.\+ >>> # REPL tests of GNU-ish readline navigation >>> # history buffer navigation >>> 1 diff --git a/tests/feature_check/repl_emacs_check.py.exp b/tests/feature_check/repl_emacs_check.py.exp index e456ef3b0e..82a4e28ee4 100644 --- a/tests/feature_check/repl_emacs_check.py.exp +++ b/tests/feature_check/repl_emacs_check.py.exp @@ -1,4 +1,5 @@ MicroPython \.\+ version +Use \.\+ >>> # Check for emacs keys in REPL >>> t = \.\+ >>> t == 2 diff --git a/unix/main.c b/unix/main.c index badbca1a92..d94544caa5 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 |