Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
    0: #!/usr/bin/perl -w
    1: use strict;
    2: use Curses;
    3:  
    4: $SIG{'INT'} = sub {endwin; exit(0);}; 
    5: 
    6: initscr;
    7: cbreak;
    8: noecho;
    9: clear;
    10: 
    11: for (my $i = 0;;$i++)
    12: {
    13:   if ($i % 2)
    14:   {
    15:     addstr(0, $i % 80, '%-');
    16:   }
    17:   else
    18:   {
    19:     addstr(0, $i % 80, '%<');
    20:   }
    21:   select(undef, undef, undef, 0.25); # sleep for 1/4 second
    22:   addstr(0, ($i - 2) % 80, '  ');
    23:   move(1, 0);
    24:   refresh;
    25: }
    26:  
    27: __END__
    28:  
    29: =pod
    30:  
    31: =head1 NAME
    32:  
    33: rws -- Running With Scissors
    34:  
    35: =head1 SYNOPSIS
    36:  
    37: B<rws>
    38:  
    39: =head1 DESCRIPTION
    40:  
    41: Trolls for a response from Randal.  Press the interrupt key (usually 
    42: Ctrl-C) to quit. 
    43:  
    44: =head1 INSTALLATION
    45:  
    46: You may have to change the first line if B<Perl> is not in F</usr/bin> on
    47: your system.  You will also need the B<Curses.pm> module (which is in the
    48: F<libcurses-perl> package in Debian GNU/Linux.) Other than that, just
    49: make the script executable and you are ready to go.
    50:  
    51: =head1 BUGS
    52:  
    53: Assumes terminal line length is 80 -- itself an example of running with
    54: scissors!
    55:  
    56: =head1 AUTHOR
    57:  
    58: Jaldhar H. Vyas E<lt>jaldhar@braincells.comE<gt>
    59:  
    60: =head1 LICENSE
    61:  
    62: This code is free software under the Crowley Public License ("Do what
    63: thou wilt shall be the whole of the license")
    64:  
    65: =head1 VERSION
    66:  
    67: 1.0 -- Aug 5, 2000
    68: 
    69: =cut

In reply to Running With Scissors by jaldhar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2022-09-25 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (116 votes). Check out past polls.

    Notices?