diff options
| author | Glenn Ruben Bakke <glennbakke@gmail.com> | 2017-05-08 22:21:56 +0200 |
|---|---|---|
| committer | Glenn Ruben Bakke <glennbakke@gmail.com> | 2017-05-08 22:21:56 +0200 |
| commit | 891bd61bf726836a8a616cc72b017f495770c229 (patch) | |
| tree | c0feaa6f81b45b0785422492e3a147101213582c /lib | |
| parent | bf796998103359e7f879f502fd79e68db7d94654 (diff) | |
| parent | 4a4490ffcc906fe88e157dc926be54030c6fbf72 (diff) | |
Merge remote-tracking branch 'upstream/master' into nrf5_no_sdk
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/utils/pyexec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/utils/pyexec.c b/lib/utils/pyexec.c index 112cfe592..7d0d1cc38 100644 --- a/lib/utils/pyexec.c +++ b/lib/utils/pyexec.c @@ -171,7 +171,8 @@ STATIC int pyexec_friendly_repl_process_char(int c); void pyexec_event_repl_init(void) { MP_STATE_VM(repl_line) = vstr_new(32); repl.cont_line = false; - readline_init(MP_STATE_VM(repl_line), ">>> "); + // no prompt before printing friendly REPL banner or entering raw REPL + readline_init(MP_STATE_VM(repl_line), ""); if (pyexec_mode_kind == PYEXEC_MODE_RAW_REPL) { pyexec_raw_repl_process_char(CHAR_CTRL_A); } else { @@ -187,6 +188,7 @@ STATIC int pyexec_raw_repl_process_char(int c) { } else if (c == CHAR_CTRL_B) { // change to friendly REPL pyexec_mode_kind = PYEXEC_MODE_FRIENDLY_REPL; + vstr_reset(MP_STATE_VM(repl_line)); repl.cont_line = false; pyexec_friendly_repl_process_char(CHAR_CTRL_B); return 0; |
