Up and down arrows in adb shell 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!
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