How to do a load "animation" on the script console

Doing a small project thats get executed from the Script Console.

I’m looking on doing a loading bar or something like tha, different that simply printing the percentage.

I tried to clear the console and reprinting the bar but appears that clearing the console is not possible. Like this:

GitHub - extensionsapp/progre.sh: Progress bar (loading, process) to a  shell script (bash, console, terminal).

This is truly not necessary for my project but I always like to doing different things.

Anyone has any idea? As I said, is not necessary, so feel free to give any idea you have!

1 Like

The script console is text only and, as far as I know, has no cursor position control on the output. If that is correct, then every print action will start on a new line.

If that is true the best I can do is this:

5 Likes

That's nice anyway!

1 Like

Correct, neither the script console nor the output console are anything like a true TTY, so line by line output is the best you can do.

1 Like