Skip to content

errnox/curses-progressbars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

Curses Progress Bars

These are two approaches to rendering progress bars using curses. Why one would want to do that, though, is anyone's guess... (Just using a loop and escape sequences directly is what a sane person would do.)

Usage

python progressbar.py
python progressbar-centered.py

progressbar.py produces something that looks roughly like this:

Computing: [#####..........................] 5/100

Whereas progressbar-centered.py centers the percentage indicator text:

[#######                5%                       ]

Note

Here is a nice trick:

Write the output to a file...

python progressbar.py > output
python progressbar-centered.py > output-centered

...then you can "replay" it like so:

cat output
cat output-centered

About

Progressbars for curses - in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages