You Suck at Programming
4. 9. 2025Creating a PERSISTENT Progress Bar on the Terminal with Bash! v2 Progress Bar
video:
https://www.youtube.com/watch?v=r2rbAvXMcXQ
source:
https://github.com/bahamas10/ysap/blob/main/code/2025-09-03-progress-bar-2/progress-bar
Nice βfatalβ function imho:
fatal() {
echo '[FATAL]' "$@" >&2
exit 1
}
Why not a bar with higher resolution?
# one block is 8 possible parts, 12.5 % in each
#U+2588 β Full block 100 %
#U+2589 β Left seven eighths block 87.5 %
#U+258A β Left three quarters block 75 %
#U+258B β Left five eighths block 62.5 %
#U+258C β Left half block 50 %
#U+258D β Left three eighths block 37.5 %
#U+258E β Left one quarter block 25 %
#U+258F β Left one eighth block 12.5 %