Escape sequences (colour) and padding with "%8s"%

Anton81 forum at anton.e4ward.com
Thu Aug 10 06:04:41 EDT 2006


For example:

print '%8s' % '\x1b[34mTEST\x1b[0m'

doesn't not indent 'TEST' whereas

print '%8s' % TEST'

works.



More information about the Python-list mailing list