Lines Matching refs:curses
8 import curses
9 from curses import panel
25 curses.napms(nap_msec)
28 stdscr.move(curses.LINES - 1, 0)
33 win = curses.newwin(rows, cols, tly, tlx)
35 if curses.has_colors():
36 if color == curses.COLOR_BLUE:
37 fg = curses.COLOR_WHITE
39 fg = curses.COLOR_BLACK
41 curses.init_pair(color, fg, bg)
42 win.bkgdset(ord(' '), curses.color_pair(color))
44 win.bkgdset(ord(' '), curses.A_BOLD)
50 curses.doupdate()
75 for y in range(0, curses.LINES - 1):
76 for x in range(0, curses.COLS):
79 p1 = mkpanel(curses.COLOR_RED,
80 curses.LINES // 2 - 2,
81 curses.COLS // 8 + 1,
86 p2 = mkpanel(curses.COLOR_GREEN,
87 curses.LINES // 2 + 1,
88 curses.COLS // 7,
89 curses.LINES // 4,
90 curses.COLS // 10)
93 p3 = mkpanel(curses.COLOR_YELLOW,
94 curses.LINES // 4,
95 curses.COLS // 10,
96 curses.LINES // 2,
97 curses.COLS // 9)
100 p4 = mkpanel(curses.COLOR_BLUE,
101 curses.LINES // 2 - 2,
102 curses.COLS // 8,
103 curses.LINES // 2 - 2,
104 curses.COLS // 3)
107 p5 = mkpanel(curses.COLOR_MAGENTA,
108 curses.LINES // 2 - 2,
109 curses.COLS // 8,
110 curses.LINES // 2,
111 curses.COLS // 2 - 2)
146 p2.move(curses.LINES // 3 + 1, curses.COLS // 8)
156 p3.move(curses.LINES // 4 + 1, curses.COLS // 15)
205 w4.move(curses.LINES // 8, 1)
207 p4.move(curses.LINES // 6, itmp * curses.COLS // 8)
208 w5.move(curses.LINES // 6, 1)
214 w4.move(curses.LINES // 6, 1)
216 p5.move(curses.LINES // 3 - 1, itmp * 10 + 6)
217 w5.move(curses.LINES // 8, 1)
223 p4.move(curses.LINES // 6, (itmp + 1) * curses.COLS // 8)
273 curses.wrapper(demo_panels)