Why not bypass the problem of the length by using \r?
print "\r\033[32m coloured! \033[m ";
Note the extra spaces on the end to ensure that if one string is shorter than that which preceeded it, the remnents of the preceeding one get erased.
In reply to Re: finding visible length of string?
by BrowserUk
in thread finding visible length of string?
by ajr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |