Skip to content

Commit b751e27

Browse files
authored
Merge branch 'mega' into openmeteo-events
2 parents 97aab88 + 6f86e12 commit b751e27

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/source/Tools/Tools.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ See also: `Serial Helper <../Plugin/SerialHelper.html>`__
351351

352352
.. note:: Make sure to either uncheck "Enable Serial Port Console" or configure another serial port for the console, when either HW Serial0 or its pins are used in a task or on the hardware page for I2C, SPI, SD-card or Ethernet.
353353

354+
Correct typing errors: (added: 2025-01-21)
355+
356+
When typing commands in the console (nothing you type is visible until you press <Enter>), typos can be corrected using the backspace key (ctrl-H). Some terminal configurations may use a different key code for backspace, then this can be re-configured in your terminal software, or you can use ``<ctrl-H>`` for correcting typos.
357+
354358
Special notes on Software Serial
355359
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
356360

src/src/ESPEasyCore/ESPEasy_Console_Port.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ bool EspEasy_Console_Port::process_consoleInput(uint8_t SerialInByte)
138138
}
139139
}
140140

141+
if ((SerialInByte == '\b') && (SerialInByteCounter > 0)) // Correct a typo using BackSpace
142+
{
143+
--SerialInByteCounter;
144+
} else
141145
if ((SerialInByte == '\r') || (SerialInByte == '\n'))
142146
{
143147
// Ignore empty command

0 commit comments

Comments
 (0)