This is an automated email from the ASF dual-hosted git repository. jerzy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 4fa2a2feac0bf8d2b015030eaad89a117ce06119 Author: Jerzy Kasenberg <[email protected]> AuthorDate: Tue Oct 8 16:56:09 2019 +0200 sys/console: Add console recovery sequence It adds handling of CTRL-L sequence that could be used if console output is disrupted. --- sys/console/full/src/console.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/console/full/src/console.c b/sys/console/full/src/console.c index ada7913..438fef7 100644 --- a/sys/console/full/src/console.c +++ b/sys/console/full/src/console.c @@ -1184,6 +1184,14 @@ console_handle_char(uint8_t byte) case ETX: console_clear_line(); break; + /* CTRL-L */ + case VT: + if (MYNEWT_VAL(CONSOLE_STICKY_PROMPT)) { + request_terminal_size(); + } else { + console_out_nolock(VT); + } + break; } } else { insert_char(&input->line[cur], byte);
