Loading ...
Sorry, an error occurred while loading the content.

RE: [PBML] CMD shell updating without newline

Expand Messages
  • doug
    Thanks... It worked... Douglas
    Message 1 of 5 , Jan 2, 2004
    • 0 Attachment
      Thanks... It worked...

      Douglas

      > -----Original Message-----
      > From: daymobrew@... [mailto:daymobrew@...]
      > Sent: Friday, January 02, 2004 3:46 AM
      > To: perl-beginner@yahoogroups.com
      > Subject: Re: [PBML] CMD shell updating without newline

      > > >
      > Maybe the code in Term::ProgressBar will help you determine how to
      > update the terminal window without using a newline.
      >
      > Alternately you can try this:
      > #!/usr/bin/perl -w
      >
      > $| = 1; # Autoflush after each output.
      > print "Hello";
      > sleep( 2 );
      > print "\r"; # Go to start of line.
      > print "there";
      > sleep( 2 );
      > print "\r";
      > # Prints 'Byere' because the 're' of 'there' is not overwritten.
      > print "Bye";
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.