Home | History | Annotate | Download | only in curses

Lines Matching refs:win

6 def rectangle(win, uly, ulx, lry, lrx):
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)
43 def __init__(self, win, insert_mode=False):
44 self.win = win
46 (self.maxy, self.maxx) = win.getmaxyx()
51 win.keypad(1)
58 if curses.ascii.ascii(self.win.inch(y, last)) != curses.ascii.SP:
67 (y, x) = self.win.getyx()
70 oldch = self.win.inch()
75 self.win.addch(ch)
79 (backy, backx) = self.win.getyx()
82 self.win.move(backy, backx)
86 (y, x) = self.win.getyx()
92 self.win.move(y, 0)
95 self.win.move(y, x-1)
99 self.win.move(y-1, self._end_of_line(y-1))
101 self.win.move(y-1, self.maxx)
103 self.win.delch()
105 self.win.delch()
108 self.win.move(y, self._end_of_line(y))
110 self.win.move(y, self.maxx)
113 self.win.move(y, x+1)
117 self.win.move(y+1, 0)
124 self.win.move(y+1, 0)
127 self.win.deleteln()
130 self.win.move(y, x)
131 self.win.clrtoeol()
133 self.win.refresh()
136 self.win.move(y+1, x)
138 self.win.move(y+1, self._end_of_line(y+1))
140 self.win.insertln()
143 self.win.move(y-1, x)
145 self.win.move(y-1, self._end_of_line(y-1))
152 self.win.move(y, 0)
159 result = result + chr(curses.ascii.ascii(self.win.inch(y, x)))
167 ch = self.win.getch()
174 self.win.refresh()
182 win = curses.newwin(nlines, ncols, uly, ulx)
185 return Textbox(win).edit()