File: README

package info (click to toggle)
libterm-twiddle-perl 2.73-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 80 kB
  • ctags: 25
  • sloc: perl: 308; makefile: 2
file content (58 lines) | stat: -rw-r--r-- 1,231 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Term/Twiddle version 2.73
=========================

DESCRIPTION

Term::Twiddle displays a little spinning baton (thingy) while
something else is going on. Its primary use is to give bored users
something to watch while some long routine is executing.

You can change the baton into something else (e.g., a pair of blinking
eyes, etc.), the rate at which it spins (or changes), randomize the
speed of the baton, and other such things.

EXAMPLE

    use Term::Twiddle;

    my $tw = new Term::Twiddle;

    ## do something
    $tw->start;

    ## while untar'ing, the baton is spinning
    system('tar', '-xf', 'some_big_tarfile.tar');

    $tw->stop;


    ## now do something else
    $tw->random;
    $tw->start;

    ## while executing, the baton changes speed randomly
    &some_long_subroutine();

    $tw->stop;

INSTALLATION

To install this module type the following:

   perl Makefile.PL
   make
   make test
   make install

DEPENDENCIES

This module requires these other modules and libraries:

  sys/syscall.ph (required for setitimer)

COPYRIGHT AND LICENCE

This library is free software; you can redistribute it and/or modify
it under the terms of the Perl Artistic License.

Copyright (C) 2002-2012 Scott Wiersdorf