Thread kleine Warteanimation (5 answers)
Opened by RPerl at 2007-05-05 13:31

RPerl
 2007-05-19 22:20
#76464 #76464
User since
2006-11-26
384 Artikel
BenutzerIn

user image
Heftig. Sehr tricky, topeg! :D

Hab aber deinen code mal etwas angepasst:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/perl
use strict;

unless(0)
{

  my @rotation = qw(/ - \ |);
  my $pos = 0;
  my $del = "\x08";
  $| = 1;
  sub { print $del,'.',$rotation[$pos]; };

  while(1)
  {
    print $del,$rotation[$pos];
    select(undef, undef, undef, 0.10);
    $pos++;
    $pos=0 if($pos >= @rotation);
  }
  exit(0);
}

exit(0);


dein code war so komplex

View full thread kleine Warteanimation