Why do up and down arrow commands not work in the Python command line interpreter?

Viewed 6938

I am using a VT100 terminal emulator on Linux. In bash, up and down arrows scroll through the last commands executed; they work as expected.

Previous (up arrow) and next (down arrow) commands are not interpreted in the Python command line interpreter. What kind of key mappings do I need to make this work?

Thank you.

3 Answers

You probably need the readline package:

pip install readline
Related