Instead, it displays this:
^[[A^[[A
Instead, it displays this:
^[[A^[[A
It will be better if you post this question on MongoDb's mailing list with little more explanation that after which command you face this problem because this is not the normal behavior.
You don't have readline
installed, so the mongo shell falls back to a simple mode without history navigation using the arrow keys.