bash_loading_animations icon indicating copy to clipboard operation
bash_loading_animations copied to clipboard

The animation gets wrapped up with words "echo/read" command

Open ghost opened this issue 1 year ago • 1 comments

I've cloned your repo as instructed. But when i run the script below, the animation gets wrapped up with letters (see in video)

I want the animation to always work until the end of script and without wrapping with any letters/words.

#!/usr/bin/env bash

source ~/Desktop/david/bash_loading_animations/bash_loading_animations.sh
trap BLA::stop_loading_animation SIGINT

BLA::start_loading_animation "${BLA_braille_whitespace[@]}"

echo -ne "Write something: "
read sth

echo "You have written: $sth "

BLA::stop_loading_animation

https://user-images.githubusercontent.com/84121715/179161886-b1774de3-af64-4949-b401-9e900968fe19.mp4

ghost avatar Jul 15 '22 06:07 ghost

This is out of range of the project for now as it would require a lot of work to make it function properly. You can take a look at this repo which has a persistent progress bar. If you wish to implement it, though, feel free to open a pull request.

Silejonu avatar Jul 20 '22 18:07 Silejonu