New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialports monitor "Ctrl+]" not working #253

mpd-dude opened this Issue Jul 18, 2015 · 2 comments


None yet
2 participants

mpd-dude commented Jul 18, 2015

Hi there,
when starting a serial monitor by

platformio serialports monitor -p COM12

under Win7 the "Ctrl+]" is not working. Maybe it is due the German keyboad layout, where "]" is AltGr+9, so the combination of "Ctrl+AltGr+9" is not working.

But "Ctrl+T followed by Ctrl+H" is working just fine. So maybe a good alternative for Quit would be "Ctrl+T followed by Ctrl+Q"? Maybe this is compatible to many different keyboard layouts?

Happy to provide more information or to test. Thanks.

@ivankravets ivankravets added this to the 2.2.2 milestone Jul 28, 2015

@ivankravets ivankravets self-assigned this Jul 28, 2015


This comment has been minimized.


ivankravets commented Jul 28, 2015

You can redefine hotkey using --exit-char option. Please look into

platformio serialports monitor --help
Usage: platformio serialports monitor [OPTIONS]

  -p, --port TEXT       Port, a number or a device name
  -b, --baud INTEGER    Set baud rate, default=9600
  --parity [N|E|O|S|M]  Set parity, default=N
  --rtscts              Enable RTS/CTS flow control, default=Off
  --xonxoff             Enable software flow control, default=Off
  --rts [0|1]           Set initial RTS line state, default=0
  --dtr [0|1]           Set initial DTR line state, default=0
  --echo                Enable local echo, default=Off
  --cr                  Do not send CR+LF, send CR only, default=Off
  --lf                  Do not send CR+LF, send LF only, default=Off
  -d, --debug           Debug received data (escape non-printable chars)
                        --debug can be given multiple times:
                        # 0: just print
                        what is received
                        # 1: escape non-printable characters,
                        do newlines as unusual
                        # 2: escape non-printable
                        characters, newlines too
                        # 3: hex dump everything
  --exit-char INTEGER   ASCII code of special character that is used to exit
                        the application, default=0x1d
  --menu-char INTEGER   ASCII code of special character that is used to
                        control miniterm (menu), default=0x14
  --quiet               Diagnostics: suppress non-error messages, default=Off
  --help                Show this message and exit.

Also, please read more detailed info in Miniterm documentation.


This comment has been minimized.

mpd-dude commented Jul 30, 2015

Thank you for implementing this. A minor issue:
I have tried with

platformio serialports monitor --exit-char 0x11

which results in

Error: Invalid value for "--exit-char": 0x11 is not a valid integer

... although in the help text the hexadecimal representation is given " [...] default=0x1d"

Using the decimal representation

platformio serialports monitor --exit-char 17

everything works fine.

Do you have any plans to store this "exit char" for the user in order to not type it again every time? If not, not a big thing, users can still script around.

Thanks again.

@ivankravets ivankravets added bug and removed help wanted labels Jul 30, 2015

ivankravets added a commit that referenced this issue Jul 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment