title: IPython OS X: Up arrow gives "^[[A"
body: <p>Whenever I hit the up arrow in IPython, instead of getting history, I get this set of characters "^[[A" (not including the quotes).</p>
  
  <p>Hitting the down arrow gives "^[[B", and tab completion doesn't work (just enters a tab).</p>
  
  <p>How can I fix this?  It happens in both Terminal and iTerm.</p>
  
  <p>Running OS X 10.5, Framework Python 2.5.4.  Error occurs in both ipython 0.8.3 and ipython 0.9.1.  pyreadline-2.5.1 egg is installed in both cases.</p>
  
  <p>(edit: SSH-ing to another linux machine and using IPython there works fine.  So does running the normal "python" command on the OS X machine.)</p>
  
  <p>Cheers,
  - Dan</p>