mike watkins dot ca : Colorized Interpreter

Colorized Interpreter

Antonio Cuni yesterday posted a useful hack that brings colour and improved completions to the Python interpreter.

http://64.21.147.48/tv-20081210-122107.gif

Attached is a minor patch which updates rlcompleter_ng.py to run on both Python 2 and 3 platforms.

On FreeBSD (and virtually every other system with a stock libreadline v 5.2) you'll need to patch libreadline - apply this patch to the source in /usr/src/contrib/libreadline. Don't forget to remake Python after making and installing the patched libreadline.

Looks lovely, thanks Antonio!

patch-rlcompleter_ng.txt (5.3 KB, text/plain)
Patch to rlcompleter_ng.py allowing it to execute on both Python 2 and Python 3.
patch-readline-escape.txt (3063 bytes, text/plain)
Patch for libreadline 5.2