mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
change CTRL-C to CTRL-S as pio monitor uses ctrl-c to exit
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user