Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I have an HTC Desire HD. When I connect to it with adb shell from Windows, the up and down arrow keys work fine and I get command history. But when I connect to it from Mac OS, the up and down arrows show up as ^[[A and ^[[B.

Is there a way to fix the mac OS terminal to work like the DOS one?

Thank you very much!

share|improve this question

2 Answers 2

up vote 1 down vote accepted

What shell is running on the phone? - You can find out with ps

I seem to remember having this issue a while ago (but haven't run in to it recently on my current phone) when logging in to plain sh, executing bash or ash immediately after connecting was a simple workaround

share|improve this answer
    
Thank you! This worked. There is no bash but there is ash. –  user1491924 Oct 20 '12 at 1:11
    
Glad to hear it :) If this has sorted it out would you mind upvoting and accepting? –  benwh Oct 21 '12 at 17:40

I'm not a MAC user per say, but here's a solution reported working:

Type in terminal:

adb shell telnetd &
adb forward tcp:9999 tcp:23
telnet localhost 9999

Credits to the user alapapa @ xda-developers forum.

See the entire thread here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.