From f94ac6b067ecc725dca3326970d5b0812c61c87d Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 8 Oct 2024 22:54:01 +0200 Subject: [PATCH] change CTRL-C to CTRL-S as pio monitor uses ctrl-c to exit --- src/emsesp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emsesp.cpp b/src/emsesp.cpp index 12a515590..31718654a 100644 --- a/src/emsesp.cpp +++ b/src/emsesp.cpp @@ -1691,7 +1691,7 @@ void EMSESP::loop() { static bool show_prompt = true; - // user has to ctrl-c to create a serial console stream, exit command will close it + // user has to CTRL-S to create a serial console stream, exit command will close it // this saves around 2kb of heap memory if (shell_) { if (!shell_->running()) { @@ -1710,7 +1710,7 @@ void EMSESP::loop() { show_prompt = true; } // https://daleswanson.org/ascii.htm#:~:text=0 - if (c == '\x03') { + if (c == '\x13') { start_serial_console(); } } @@ -1731,7 +1731,7 @@ void EMSESP::start_serial_console() { void EMSESP::shell_prompt() { #ifndef EMSESP_STANDALONE serial_console_.println(); - serial_console_.printf("EMS-ESP %s: press CTRL-C to activate this serial console", EMSESP_APP_VERSION); + serial_console_.printf("EMS-ESP %s: press CTRL-S to activate this serial console", EMSESP_APP_VERSION); serial_console_.println(); #endif }