ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/progbar.py
Revision: 1.1
Committed: Tue May 8 10:37:17 2012 UTC (13 years ago) by peller
Content type: text/x-python
Branch: MAIN
CVS Tags: hcpApproval, HCP_unblinding, hcpPreApp, hcpPreAppFreeze, ICHEP8TeV, ichep8TeV, AN-12-181-7TeV_patch1, AN-12-181-7TeV
Log Message:
updated code

File Contents

# User Rev Content
1 peller 1.1 import sys
2     class progbar:
3     def __init__(self,width):
4     self.width=width
5     sys.stdout.write("\033[1;47m%s\033[1;m" % (" " * width))
6     sys.stdout.flush()
7     sys.stdout.write("\b" * (width+1)) # return to start of line, after '['
8     def move(self):
9     sys.stdout.write("\033[1;42m \033[1;m")
10     sys.stdout.flush()