From 60f28599d9ebe358de23192a1194840e9b67f1ab Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 25 Apr 2020 15:48:37 +0300 Subject: [PATCH] Echo what is typed when "send_on_enter" device monitor filter is used // Resolve #3452 --- HISTORY.rst | 3 ++- platformio/commands/device/filters/send_on_enter.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index ddf9870c..98346343 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -9,8 +9,9 @@ PlatformIO Core 4 4.3.2 (2020-??-??) ~~~~~~~~~~~~~~~~~~ -* New `PIO Account `__ with "username" and profile support +* New `Account Management System `__ with "username" and social providers (preview) * Open source `PIO Remote `__ client +* Echo what is typed when ``send_on_enter`` device monitor filter `__ is used (`issue #3452 `_) * Fixed PIO Unit Testing for Zephyr RTOS * Fixed UnicodeDecodeError on Windows when network drive (NAS) is used (`issue #3417 `_) * Fixed an issue when saving libraries in new project results in error "No option 'lib_deps' in section" (`issue #3442 `_) diff --git a/platformio/commands/device/filters/send_on_enter.py b/platformio/commands/device/filters/send_on_enter.py index 10ca2103..2a50bd15 100644 --- a/platformio/commands/device/filters/send_on_enter.py +++ b/platformio/commands/device/filters/send_on_enter.py @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +import click + from platformio.commands.device import DeviceMonitorFilter @@ -23,6 +25,7 @@ class SendOnEnter(DeviceMonitorFilter): self._buffer = "" def tx(self, text): + click.echo(text, nl=False) self._buffer += text if self._buffer.endswith("\r\n"): text = self._buffer[:-2]