diff options
author | Damien George <damien.p.george@gmail.com> | 2015-05-24 22:36:31 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-05-27 15:59:43 +0100 |
commit | 9ae3fc65235303322ef5282d3cdd4ca99a2c37cc (patch) | |
tree | 5644437cc732a8a33f2ec8752610d4d55c8a740b /unix/unix_mphal.h | |
parent | 4a10214be20cb8a51724913903678f4506358752 (diff) | |
download | micropython-9ae3fc65235303322ef5282d3cdd4ca99a2c37cc.tar.gz micropython-9ae3fc65235303322ef5282d3cdd4ca99a2c37cc.zip |
unix: Add option to use uPy readline, and enable by default.
This gets uPy readline working with unix port, with tab completion and
history. GNU readline is still supported, configure using
MICROPY_USE_READLINE variable.
Diffstat (limited to 'unix/unix_mphal.h')
-rw-r--r-- | unix/unix_mphal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/unix_mphal.h b/unix/unix_mphal.h index 3d9fee5c3c..209ce6d07b 100644 --- a/unix/unix_mphal.h +++ b/unix/unix_mphal.h @@ -30,6 +30,9 @@ void mp_hal_set_interrupt_char(char c); +void mp_hal_stdio_mode_raw(void); +void mp_hal_stdio_mode_orig(void); + int mp_hal_stdin_rx_chr(void); void mp_hal_stdout_tx_str(const char *str); void mp_hal_stdout_tx_strn(const char *str, mp_uint_t len); |