in reply to finding visible length of string?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: finding visible length of string?
by sauoq (Abbot) on Sep 19, 2002 at 00:16 UTC | |
by ajr (Initiate) on Sep 19, 2002 at 01:02 UTC |