Josh Close writes:
> I'm writing a script with php that will have a rotating cursor during
> waiting times.
#!/usr/local/bin/php -qC
<?
echo "Processing... ";
for ($i = 0; $i < 100; $i++)
{
progress();
usleep(100000);
}
echo "\010done\n";
function progress()
{
static $current = 0;
$char = "|/-\\";
echo "\010" . $char{$current++};
$current %= strlen($char);
}
?>
--
David Phillips <david at acz.org>
http://david.acz.org/
_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list