Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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


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.