• Home
  • Raw
  • Download

Lines Matching refs:win

6 def rectangle(win, uly, ulx, lry, lrx):  argument
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): argument
44 self.win = win
49 win.keypad(1)
52 maxy, maxx = self.win.getmaxyx()
62 if curses.ascii.ascii(self.win.inch(y, last)) != curses.ascii.SP:
72 (y, x) = self.win.getyx()
76 oldch = self.win.inch()
81 self.win.addch(ch)
87 (y, x) = self.win.getyx()
93 self.win.move(*backyx)
98 (y, x) = self.win.getyx()
104 self.win.move(y, 0)
107 self.win.move(y, x-1)
111 self.win.move(y-1, self._end_of_line(y-1))
113 self.win.move(y-1, self.maxx)
115 self.win.delch()
117 self.win.delch()
120 self.win.move(y, self._end_of_line(y))
122 self.win.move(y, self.maxx)
125 self.win.move(y, x+1)
129 self.win.move(y+1, 0)
136 self.win.move(y+1, 0)
139 self.win.deleteln()
142 self.win.move(y, x)
143 self.win.clrtoeol()
145 self.win.refresh()
148 self.win.move(y+1, x)
150 self.win.move(y+1, self._end_of_line(y+1))
152 self.win.insertln()
155 self.win.move(y-1, x)
157 self.win.move(y-1, self._end_of_line(y-1))
165 self.win.move(y, 0)
172 result = result + chr(curses.ascii.ascii(self.win.inch(y, x)))
180 ch = self.win.getch()
187 self.win.refresh()
195 win = curses.newwin(nlines, ncols, uly, ulx)
198 return Textbox(win).edit()