Re: sys.ps1 with formatting (linux)

2008-08-06 Thread Hugo
Hi all, My apologies for resurrecting an old thread, but I couldn't find the answer on the list and others might still have the same problem. On Mon Jul 23 22:33:22 CEST 2007, Jon Dobson wrote (reformatted): I'm trying to set sys.ps1 and sys.ps2 with some formatting using:

sys.ps1 with formatting (linux)

2007-07-23 Thread Jon Dobson
I'm trying to set sys.ps1 and sys.ps2 with some formatting (linux) using: python -i -c 'import sys; sys.ps1=\033[1m\033[32mspy\033[0m;sys.ps2=\033[1m\033[32m .\033[0m' I get the colored prompt(s) as you might expect, but I'm getting some strange behavior with wrapping. Once the interactive