Skip to content
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

Serial Monitor: Exit key combination doesn't work on international keyboards #386

Closed
syntway opened this issue Dec 17, 2015 · 7 comments
Closed
Assignees
Milestone

Comments

@syntway
Copy link

syntway commented Dec 17, 2015

In Windows the platformio serialports monitor Exit key combination Ctrl + ] does not work on international keyboards where ] is produced by a combination of keys.

For example in the standard Portuguese keyboard (Portugal and probably Brazil and other variants also), the ] character is produced by pressing Alt Gr + 8. In this case Serial Monitor never exits and one has to press Ctrl + Break to kill the program.

@ivankravets
Copy link
Member

@syntway
Copy link
Author

syntway commented Dec 18, 2015

That will send the exit char but won't quit the app itself, right? Can't platformio use an universal key combination like Ctrl + Q?
I suspect many other non-us keyboards will have this behavior...

@ivankravets
Copy link
Member

Can't platformio use an universal key combination like Ctrl + Q?

Universal for what? No here "universal". You can configure own --exit-char. See

platformio serialports monitor --exit-char 93
--- Miniterm on /dev/cu.usbmodemFD1311: 9600,8,N,1 ---
--- Quit: ']'  |  Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---

# to exit use Ctrl+C+]

platformio serialports monitor --exit-char 17
--- Miniterm on /dev/cu.usbmodemFD1311: 9600,8,N,1 ---
--- Quit: Ctrl+Q  |  Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---

# to exit use Ctrl+Q

If you specify DIRECT ASCII code (like 93 for ]), then you need to use Ctrl+C+]``. To use direct key, please minus 64 from ASCII char. For example, ASCII code for'Q'char is81, then81-64=17. Nowplatformio serialports monitor --exit-char 17will wait forCtrl+Q`

Here is the table http://www.theasciicode.com.ar/ascii-printable-characters/box-brackets-square-brackets-closing-bracket-ascii-code-93.html

Does it help you?

@syntway
Copy link
Author

syntway commented Dec 19, 2015

I meant universal for all keyboards: the default you have now will work on keyboards where Ctrl + ] is a direct key combination (like the English keyboard) in others it won't work (nothing happens).
Because of this maybe it would make sense to have a default exit combination that works for everyone, like Ctrl + Q or similar.

In any case, using --exit-char works fine. I'd suggest adding the explanation above to the docs as this information is far from obvious.

Thanks, you deserve many stars, this is an awesome project! Regards!

@ivankravets
Copy link
Member

Which --exit-char do you use? I'll add to the doc.

Thanks!

@syntway
Copy link
Author

syntway commented Dec 19, 2015

Ctrl + Q as you listed two posts ago: --exit-char 17

@ivankravets ivankravets added this to the 2.6.4 milestone Dec 22, 2015
@ivankravets ivankravets self-assigned this Dec 22, 2015
@ivankravets
Copy link
Member

I've added to docs. What is interesting, that Ctrl+Q doesn't work for me 😞

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

No branches or pull requests

2 participants