in reply to Using a thread to provide visual feedback.

you can do lots of ascii text effects with curses and Term::Animation

  • Comment on Re: Using a thread to provide visual feedback.

Replies are listed 'Best First'.
Re^2: Using a thread to provide visual feedback.
by Anonymous Monk on Jun 21, 2018 at 19:54 UTC
    I saw those, but I didn't see how to use them without blocking the system call. The entire point here was to give visual "I'm alive" feedback to a person running a command line script. The use of dots isn't the interesting part, it's the use of threads that's interesting. Does the Animation module support that?

      I hope that's enough of visual feedback and non-blocking too.

      bw, bliako

      ps. using asciiquarium by Kirk Baucom (aythor of Term::Animation) and Joan Stark

      Edit: changed the program a bit so as to stop without resorting to signal but by passing a ref to the shared variable $stop.