Lines Matching refs:curses
9 import curses
10 import curses.ascii
17 self.win = curses.newwin(h, w, y, x)
40 self.win.bkgd(curses.color_pair(1))
54 self.win.addstr(0, 0, text, curses.A_REVERSE)
127 attr = curses.A_NORMAL
129 attr = curses.A_REVERSE
135 except curses.error:
155 if event == curses.KEY_UP:
157 if event == curses.KEY_DOWN:
159 if event == curses.ascii.NL:
192 curses.start_color()
193 curses.init_pair(1, curses.COLOR_WHITE, curses.COLOR_BLUE)
194 curses.init_pair(2, curses.COLOR_YELLOW, curses.COLOR_BLACK)
195 curses.init_pair(3, curses.COLOR_RED, curses.COLOR_BLACK)
196 self.screen.bkgd(curses.color_pair(1))
219 if event == curses.KEY_F3:
236 curses.doupdate() # redraw the physical screen
304 if key == curses.ascii.NL:
306 elif key == curses.ascii.TAB:
308 elif curses.ascii.isprint(key):
312 elif key == curses.KEY_BACKSPACE or key == curses.ascii.BS:
317 elif key == curses.KEY_DC or key == curses.ascii.DEL or key == curses.ascii.EOT:
320 elif key == curses.ascii.VT: # CTRL-K
322 elif key == curses.KEY_LEFT or key == curses.ascii.STX: # left or CTRL-B
325 elif key == curses.KEY_RIGHT or key == curses.ascii.ACK: # right or CTRL-F
328 elif key == curses.ascii.SOH: # CTRL-A
330 elif key == curses.ascii.ENQ: # CTRL-E
332 elif key == curses.KEY_UP or key == curses.ascii.DLE: # up or CTRL-P
335 elif key == curses.KEY_DOWN or key == curses.ascii.SO: # down or CTRL-N