change CTRL-C to CTRL-S as pio monitor uses ctrl-c to exit

This commit is contained in:
proddy
2024-10-08 22:54:01 +02:00
parent 4611ed49b0
commit f94ac6b067

View File

@@ -1691,7 +1691,7 @@ void EMSESP::loop() {
static bool show_prompt = true; 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 // this saves around 2kb of heap memory
if (shell_) { if (shell_) {
if (!shell_->running()) { if (!shell_->running()) {
@@ -1710,7 +1710,7 @@ void EMSESP::loop() {
show_prompt = true; show_prompt = true;
} }
// https://daleswanson.org/ascii.htm#:~:text=0 // https://daleswanson.org/ascii.htm#:~:text=0
if (c == '\x03') { if (c == '\x13') {
start_serial_console(); start_serial_console();
} }
} }
@@ -1731,7 +1731,7 @@ void EMSESP::start_serial_console() {
void EMSESP::shell_prompt() { void EMSESP::shell_prompt() {
#ifndef EMSESP_STANDALONE #ifndef EMSESP_STANDALONE
serial_console_.println(); 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(); serial_console_.println();
#endif #endif
} }