
David Abrahams wrote:
Rob Stewart <stewart@sig.com> writes:
From: David Abrahams <dave@boost-consulting.com>
Rob Stewart <stewart@sig.com> writes:
There's always the old standby approach of printing, in succession, the following strings:
"\r-" "\r\" "\r|" "\r/" repeat
Does that really work reliably and portably, or are some people going to see
-\|/-\|/-\|/-\|/-\|/-\|/....
I suppose that there might be a dumb terminal emulator that won't do the right thing, but I wouldn't expect that to be at all common. Even emacs's shell mode, for which $TERM is "dumb," works (tested using
printf "testing -"; sleep 1; printf "\rtesting \\"; sleep 1; printf "\rtesting |"; sleep 1; printf "\rtesting /"; sleep 1; printf "\rtesting...done\n"
from bash).
Okay, I'm all for it.
Question is... Does that work in CMD.EXE? -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org