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

Arrow and function keys not being sent to connected device #19

Closed
svcguy opened this issue Jun 2, 2022 · 4 comments
Closed

Arrow and function keys not being sent to connected device #19

svcguy opened this issue Jun 2, 2022 · 4 comments
Assignees

Comments

@svcguy
Copy link

svcguy commented Jun 2, 2022

Hello,

Thanks for a wonderful app. My use case is to run this from Windows Terminal to connect to a proprietary hardware device over RS232 using a USB to Serial adapter. Everything works great except sending arrow keys for the (somewhat) menu based navigation on the device. I think I need to just send arrow keys, but I'm not 100% sure. Unfortunately, I can't provide a lot of detail regarding the device itself, but can test.

Running SimplySerial 0.7.0 on WIN10

@gartzia
Copy link

gartzia commented Jul 14, 2022

I have a similar problem. I connect to a target that runs a linux distribution, when I execute the htop command, I cannot scroll through its menu due to the same problem indicated by @svcguy .
Thanks in advance and for all the development, good job.

@fasteddy516
Copy link
Owner

I will have to look into this. Support for ANSI escape sequences (cursor keys, etc.) was added in version 0.6.0, but the Linux serial terminal may be expecting something different. Do the cursor up/down keys work to navigate your command history at a shell prompt?

@fasteddy516 fasteddy516 self-assigned this Jul 18, 2022
@fasteddy516 fasteddy516 changed the title Arrow Keys Arrow and function keys not being sent to connected device Aug 22, 2022
@fasteddy516
Copy link
Owner

I did some testing using a serial console connection to a Raspberry Pi as well as an old HP ProCurve switch (which has a menu-based serial console) using SimplySerial V0.7.0 on Windows 10 as well as Windows 11.

@svcguy, the arrow keys worked fine for menu navigation on the HP Procurve switch, as well as for navigation (i.e. in raspi-config) and bash command history on the Raspberry Pi. If you are able to provide any information at all about the device and/or application you are having trouble with, that would be helpful as I am unable to reproduce the problem with what I have on hand.

@gartzia, I tried executing the htop command on the Raspberry Pi through serial connection, and the cursor keys do function normally for scrolling through the process list, but the function keys (F1 - F10) for triggering menu options do not function. I can look at adding support for sending function keys, but was hoping you could confirm if this is the issue you were reporting, or if you were also having issues with the arrow keys specifically.

@svcguy
Copy link
Author

svcguy commented Aug 23, 2022 via email

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

No branches or pull requests

3 participants