zsh-users
 help / color / mirror / code / Atom feed
* Count only visible characters?
@ 2010-04-08 22:38 Seth House
  2010-04-09  9:02 ` Joke de Buhr
  2010-04-09 19:50 ` Peter Stephenson
  0 siblings, 2 replies; 11+ messages in thread
From: Seth House @ 2010-04-08 22:38 UTC (permalink / raw)
  To: zsh-users

Is there any way to count only visible characters?

    testing="%F{green}hello"
    echo ${(%)#testing}

The number I'm interested in is 5 not 14.

After an awful lot of Googling, I'm under the impression this isn't a trivial 
problem. If that is true, I would certainly enjoy a little exposition if someone 
has time.

Thanks.
- Seth


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-04-10  4:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-08 22:38 Count only visible characters? Seth House
2010-04-09  9:02 ` Joke de Buhr
2010-04-09  9:13   ` Frank Terbeck
2010-04-09  9:49     ` Joke de Buhr
2010-04-09 19:22       ` Seth House
2010-04-09 10:44     ` Sebastian Stark
2010-04-09 10:56       ` Sebastian Stark
2010-04-09 12:08         ` Peter Stephenson
2010-04-09 12:27           ` Sebastian Stark
2010-04-09 19:50 ` Peter Stephenson
2010-04-10  4:02   ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).