Lines Matching refs:curses
43 import curses
68 def __init__( self, x, y, width, height, fg=curses.COLOR_BLACK, bg=curses.COLOR_WHITE ):
69 self.win = curses.newwin( height, width, y, x )
104 self.win.hline( y, 0, curses.ACS_HLINE, self.dimensions[WIDTH] )
109 … def __init__( self, title, x, y, width, height, fg=curses.COLOR_BLACK, bg=curses.COLOR_WHITE ):
113 self.decoration.win.hline( 2, 1, curses.ACS_HLINE, width-2 )
117 self.decoration.setText( 1, 1, title.center( self.dimensions[WIDTH]-2 ), curses.A_BOLD )
156 curses.nl()
160 self.decoration.setText( 2, 1, title, curses.A_BOLD )
161 self.decoration.setText( self.StatusPosition - 8, 1, "Status:", curses.A_BOLD )
166 self.decoration.setText( self.StatusPosition, 1, status, curses.A_BOLD )
332 curses.doupdate()
361 curses.wrapper(ui.main, server, eventHandler, params)