When I try to make the Python shell get color:
python 2>&1 | source-highlight --failsafe -f esc -s python
>>> prompt seems to be always delayed by 1 command.
Why is this happening, and how do I fix this?
I don't think this will ever work quite that way. The
You might consider using an editor that has real-time syntax highlighting and setting up some macros to execute the file in the python interpreter or looking for alternate readline environment wrappers for python, but I'm pretty sure the solution you were trying won't work so don't beat yourself up over it too much.