Lines Matching refs:curses
8 import curses, time
25 if curses.has_colors():
26 stdscr.attrset(curses.color_pair(pair))
72 my_bg = curses.COLOR_BLACK
77 if curses.has_colors():
78 curses.init_pair(1, curses.COLOR_RED, my_bg)
79 curses.init_pair(2, curses.COLOR_MAGENTA, my_bg)
80 curses.init_pair(3, curses.COLOR_GREEN, my_bg)
82 cx = (curses.COLS - 1) // 2
83 cy = curses.LINES // 2
101 curses.napms(1000)
121 stdscr.attrset(curses.A_REVERSE)
123 stdscr.attroff(curses.A_REVERSE)
125 if curses.has_colors():
126 stdscr.attrset(curses.color_pair(1))
130 if curses.has_colors():
131 stdscr.attrset(curses.color_pair(0))
133 stdscr.addstr(curses.LINES - 2, 0, time.ctime(tim))
137 curses.beep()
147 curses.wrapper(main)