ProgressBar.py | 93 # Curses isn't available on all platforms 94 try: import curses namespace 102 try: curses.setupterm() 106 self.COLS = curses.tigetnum('cols') 107 self.LINES = curses.tigetnum('lines') 108 self.XN = curses.tigetflag('xenl') 119 setattr(self, color, curses.tparm(set_fg, i) or '') 123 setattr(self, color, curses.tparm(set_fg_ansi, i) or '') 127 setattr(self, 'BG_'+color, curses.tparm(set_bg, i) or '') 131 setattr(self, 'BG_'+color, curses.tparm(set_bg_ansi, i) or '' 137 import curses namespace [all...] |