From 5761cea47e08bb17be95b97e28489021c212bf41 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 30 Jul 2015 17:50:07 +0300 Subject: [PATCH] Fixed "platformio serialports monitor --help" information with HEX char for hotkeys // Resolve #253 --- HISTORY.rst | 2 ++ platformio/commands/serialports.py | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index f12bca4c..a6b76a86 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -10,6 +10,8 @@ Release History * Disable project auto-clean while building/uploading firmware using `platformio run --disable-auto-clean `_ option (`issue #255 `_) +* Fixed `platformio serialports monitor --help `__ information with HEX char for hotkeys + (`issue #253 `_) * Handle "OSError: [Errno 13] Permission denied" for PlatformIO installer script (`issue #254 `_) diff --git a/platformio/commands/serialports.py b/platformio/commands/serialports.py index 820f4b4a..33bbe4e6 100644 --- a/platformio/commands/serialports.py +++ b/platformio/commands/serialports.py @@ -59,12 +59,12 @@ def serialports_list(json_output): # 1: escape non-printable characters, do newlines as unusual # 2: escape non-printable characters, newlines too # 3: hex dump everything""") -@click.option("--exit-char", type=int, default=0x1d, +@click.option("--exit-char", type=int, default=29, help="ASCII code of special character that is used to exit the " - "application, default=0x1d") -@click.option("--menu-char", type=int, default=0x14, + "application, default=19 (DEC)") +@click.option("--menu-char", type=int, default=20, help="ASCII code of special character that is used to control " - "miniterm (menu), default=0x14") + "miniterm (menu), default=20 (DEC)") @click.option("--quiet", is_flag=True, help="Diagnostics: suppress non-error messages, default=Off") def serialports_monitor(**kwargs):