Lines Matching refs:curses
3 import curses
4 import curses.ascii
10 win.vline(uly+1, ulx, curses.ACS_VLINE, lry - uly - 1)
11 win.hline(uly, ulx+1, curses.ACS_HLINE, lrx - ulx - 1)
12 win.hline(lry, ulx+1, curses.ACS_HLINE, lrx - ulx - 1)
13 win.vline(uly+1, lrx, curses.ACS_VLINE, lry - uly - 1)
14 win.addch(uly, ulx, curses.ACS_ULCORNER)
15 win.addch(uly, lrx, curses.ACS_URCORNER)
16 win.addch(lry, lrx, curses.ACS_LRCORNER)
17 win.addch(lry, ulx, curses.ACS_LLCORNER)
62 if curses.ascii.ascii(self.win.inch(y, last)) != curses.ascii.SP:
82 except curses.error:
84 if not self.insert_mode or not curses.ascii.isprint(oldch):
100 if curses.ascii.isprint(ch):
103 elif ch == curses.ascii.SOH: # ^a
105 elif ch in (curses.ascii.STX,curses.KEY_LEFT, curses.ascii.BS,curses.KEY_BACKSPACE):
114 if ch in (curses.ascii.BS, curses.KEY_BACKSPACE):
116 elif ch == curses.ascii.EOT: # ^d
118 elif ch == curses.ascii.ENQ: # ^e
123 elif ch in (curses.ascii.ACK, curses.KEY_RIGHT): # ^f
130 elif ch == curses.ascii.BEL: # ^g
132 elif ch == curses.ascii.NL: # ^j
137 elif ch == curses.ascii.VT: # ^k
144 elif ch == curses.ascii.FF: # ^l
146 elif ch in (curses.ascii.SO, curses.KEY_DOWN): # ^n
151 elif ch == curses.ascii.SI: # ^o
153 elif ch in (curses.ascii.DLE, curses.KEY_UP): # ^p
172 result = result + chr(curses.ascii.ascii(self.win.inch(y, x)))
195 win = curses.newwin(nlines, ncols, uly, ulx)
200 str = curses.wrapper(test_editbox)