in reply to Re: Using a thread to provide visual feedback.
in thread Using a thread to provide visual feedback.

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?
  • Comment on Re^2: Using a thread to provide visual feedback.

Replies are listed 'Best First'.
Re^3: Using a thread to provide visual feedback.
by bliako (Abbot) on Jun 22, 2018 at 00:06 UTC

    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.