diff options
author | Damien George <damien.p.george@gmail.com> | 2015-10-20 13:27:14 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-10-20 13:27:14 +0100 |
commit | f961456b29a6ca2bd386a672d2ea2782c925c72f (patch) | |
tree | 1d40359b5e7e527576e8baf1a57387e3cd3a0785 /windows/windows_mphal.h | |
parent | 22521ea9e2a83dbcbd6da16d6a76b01aa3bf039a (diff) | |
download | micropython-f961456b29a6ca2bd386a672d2ea2782c925c72f.tar.gz micropython-f961456b29a6ca2bd386a672d2ea2782c925c72f.zip |
lib/mp-readline: Add n_chars argument to mp_hal_erase_line_from_cursor.
If VT100 support is not available then a given implementation of
mp_hal_erase_line_from_cursor might need to know the number of characters
to erase.
This patch does not change generated code when VT100 is supported, since
compiler can optimise away the argument.
Diffstat (limited to 'windows/windows_mphal.h')
-rw-r--r-- | windows/windows_mphal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/windows/windows_mphal.h b/windows/windows_mphal.h index b9ed67e710..8173d93eca 100644 --- a/windows/windows_mphal.h +++ b/windows/windows_mphal.h @@ -29,4 +29,4 @@ #define MICROPY_HAL_HAS_VT100 (0) void mp_hal_move_cursor_back(unsigned int pos); -void mp_hal_erase_line_from_cursor(); +void mp_hal_erase_line_from_cursor(unsigned int n_chars_to_erase); |