title: Python debugger (pdb) stopped handlying up/down arrows, shows ^[[A instead
body: <p>I am using python 2.6 in a virtualenv on an Ubuntu Linux 11.04 (natty) machine. I have this code in my (django) python code:</p>
  
  <pre><code>import pdb ; pdb.set_trace()
  </code></pre>
  
  <p>in order to launch the python debugger (pdb).</p>
  
  <p>Up until today, this worked fine. But now when the pdb starts, it works for debugging and running and breakpoints etc, but when I press the <kbd>up arrow</kbd> to show the previous command it prints <code>^[[A</code> instead an doesn't go up. When I type something and press <kbd>Home</kbd>, it prints <code>^[OH</code> instead of moving the cursor.</p>
  
  <p>I can use up/home/etc. fine in the bash terminal which launches my python django unittests (which has the pdb call).</p>
  
  <p>What's going on? How do I fix my pdb? What's wrong with my readline?</p>