metal3d / bashsimplecurses

A simple curses library made in bash to draw terminal interfaces
BSD 3-Clause "New" or "Revised" License
921 stars 115 forks source link

Fix progressbar logic #37

Closed comigor closed 5 years ago

comigor commented 5 years ago

Previously it wasn't full even when done=max.

Now it successfully fill it up:

│ [-                               ] │
│ [███\                            ] │
│ [██████|                         ] │
│ [█████████/                      ] │
│ [████████████-                   ] │
│ [████████████████\               ] │
│ [███████████████████|            ] │
│ [██████████████████████/         ] │
│ [█████████████████████████-      ] │
│ [████████████████████████████\   ] │
│ [████████████████████████████████] │
metal3d commented 5 years ago

My god, you're making that tool almost complete ;)

metal3d commented 5 years ago

One note, can you add your name in the contributors file ?

comigor commented 5 years ago

Sure! I'll add it on https://github.com/metal3d/bashsimplecurses/pull/36

metal3d commented 5 years ago

Actually I did it :smile:

It's on the release I just did

comigor commented 5 years ago

Oh thanks!