shafer0228
Posts: 5
Joined: Thu Mar 26, 2020 3:05 pm

Arrow keys not registering from SSH in Android

Tue Apr 07, 2020 2:00 pm

I've imported curses into a code to control an RPi car using arrow keys. This works perfectly from a desktop keyboard (with and without SSH) but does not function across various SSH clients on my smartphone.

Any idea as to why? Or how to fix this? Thanks

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Arrow keys not registering from SSH in Android

Tue Apr 07, 2020 10:33 pm

Complain to the phone software developer. I doubt it's something we can fix from the Raspberry.

I have no problems with JuiceSSH on my Android phone.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

shafer0228
Posts: 5
Joined: Thu Mar 26, 2020 3:05 pm

Re: Arrow keys not registering from SSH in Android

Wed Apr 08, 2020 7:46 pm

You don't believe that possibly the key buttons on the smartphone's keyboard is registering as a different character than the one I've assigned the arrow keys on my pc's keyboard?

Ex. KEY_UP in curses is associated with the up arrow key on my laptop keyboard. However, the up arrow key on my smartphone keyboard may be registered as a different character or function.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Arrow keys not registering from SSH in Android

Wed Apr 08, 2020 8:50 pm

shafer0228 wrote:
Wed Apr 08, 2020 7:46 pm
You don't believe that possibly the key buttons on the smartphone's keyboard is registering as a different character than the one I've assigned the arrow keys on my pc's keyboard?

Ex. KEY_UP in curses is associated with the up arrow key on my laptop keyboard. However, the up arrow key on my smartphone keyboard may be registered as a different character or function.
Doesn't that make it an Android problem?

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Arrow keys not registering from SSH in Android

Wed Apr 08, 2020 9:25 pm

shafer0228 wrote:
Wed Apr 08, 2020 7:46 pm
You don't believe that possibly the key buttons on the smartphone's keyboard is registering as a different character than the one I've assigned the arrow keys on my pc's keyboard?

Ex. KEY_UP in curses is associated with the up arrow key on my laptop keyboard. However, the up arrow key on my smartphone keyboard may be registered as a different character or function.
Have you tried JuiceSSH? Have you tried any other Android SSH application?
The bug appears to be 100% outboard of the Raspberry by the way you've described it.

Go and ask the developer. They may be interested in fixing it for you and all of their other users.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Advanced users”