I'm sure that what I'm asking is doable in some way but I have no idea what it's called. So I can't really search for it ..
I'd like to display a text (in console) progress bar for a function that is merely a loop for, from 0 to max. I know how I can do the progress bar using "\r", but it requires to add it inside the loop..
What would be the way to send info from a running function (here the incremental number) to another .. ?
Please point me to a duplicate as I'm sure it is.
Thank you.