• Home
  • Raw
  • Download

Lines Matching refs:stdscr

74         self.stdscr = curses.initscr()
84 stdscr = self.stdscr
89 for meth in [stdscr.addch, stdscr.addstr]:
95 for meth in [stdscr.clear, stdscr.clrtobot,
96 stdscr.clrtoeol, stdscr.cursyncup, stdscr.delch,
97 stdscr.deleteln, stdscr.erase, stdscr.getbegyx,
98 stdscr.getbkgd, stdscr.getkey, stdscr.getmaxyx,
99 stdscr.getparyx, stdscr.getyx, stdscr.inch,
100 stdscr.insertln, stdscr.instr, stdscr.is_wintouched,
101 win.noutrefresh, stdscr.redrawwin, stdscr.refresh,
102 stdscr.standout, stdscr.standend, stdscr.syncdown,
103 stdscr.syncup, stdscr.touchwin, stdscr.untouchwin]:
107 stdscr.addnstr('1234', 3)
108 stdscr.addnstr('1234', 3, curses.A_BOLD)
109 stdscr.addnstr(4,4, '1234', 3)
110 stdscr.addnstr(5,5, '1234', 3, curses.A_BOLD)
112 stdscr.attron(curses.A_BOLD)
113 stdscr.attroff(curses.A_BOLD)
114 stdscr.attrset(curses.A_BOLD)
115 stdscr.bkgd(' ')
116 stdscr.bkgd(' ', curses.A_REVERSE)
117 stdscr.bkgdset(' ')
118 stdscr.bkgdset(' ', curses.A_REVERSE)
136 stdscr.clearok(1)
138 win4 = stdscr.derwin(2,2)
139 win4 = stdscr.derwin(1,1, 5,5)
142 stdscr.echochar('a')
143 stdscr.echochar('a', curses.A_BOLD)
144 stdscr.hline('-', 5)
145 stdscr.hline('-', 5, curses.A_BOLD)
146 stdscr.hline(1,1,'-', 5)
147 stdscr.hline(1,1,'-', 5, curses.A_BOLD)
149 stdscr.idcok(1)
150 stdscr.idlok(1)
151 if hasattr(stdscr, 'immedok'):
152 stdscr.immedok(1)
153 stdscr.immedok(0)
154 stdscr.insch('c')
155 stdscr.insdelln(1)
156 stdscr.insnstr('abc', 3)
157 stdscr.insnstr('abc', 3, curses.A_BOLD)
158 stdscr.insnstr(5, 5, 'abc', 3)
159 stdscr.insnstr(5, 5, 'abc', 3, curses.A_BOLD)
161 stdscr.insstr('def')
162 stdscr.insstr('def', curses.A_BOLD)
163 stdscr.insstr(5, 5, 'def')
164 stdscr.insstr(5, 5, 'def', curses.A_BOLD)
165 stdscr.is_linetouched(0)
166 stdscr.keypad(1)
167 stdscr.leaveok(1)
168 stdscr.move(3,3)
170 stdscr.nodelay(1)
171 stdscr.notimeout(1)
176 stdscr.redrawln(1,2)
178 stdscr.scrollok(1)
179 stdscr.scroll()
180 stdscr.scroll(2)
181 stdscr.scroll(-3)
183 stdscr.move(12, 2)
184 stdscr.setscrreg(10,15)
185 win3 = stdscr.subwin(10,10)
186 win3 = stdscr.subwin(10,10, 5,5)
187 if hasattr(stdscr, 'syncok') and not sys.platform.startswith("sunos"):
188 stdscr.syncok(1)
189 stdscr.timeout(5)
190 stdscr.touchline(5,5)
191 stdscr.touchline(5,5,0)
192 stdscr.vline('a', 3)
193 stdscr.vline('a', 3, curses.A_STANDOUT)
194 if hasattr(stdscr, 'chgat'):
195 stdscr.chgat(5, 2, 3, curses.A_BLINK)
196 stdscr.chgat(3, curses.A_BOLD)
197 stdscr.chgat(5, 8, curses.A_UNDERLINE)
198 stdscr.chgat(curses.A_BLINK)
199 stdscr.refresh()
201 stdscr.vline(1,1, 'a', 3)
202 stdscr.vline(1,1, 'a', 3, curses.A_STANDOUT)
204 if hasattr(stdscr, 'resize'):
205 stdscr.resize(25, 80)
206 if hasattr(stdscr, 'enclose'):
207 stdscr.enclose(10, 10)
209 self.assertRaises(ValueError, stdscr.getstr, -400)
210 self.assertRaises(ValueError, stdscr.getstr, 2, 3, -400)
211 self.assertRaises(ValueError, stdscr.instr, -2)
212 self.assertRaises(ValueError, stdscr.instr, 2, 3, -2)
216 stdscr = self.stdscr
219 self.assertRaises(ValueError, stdscr.addstr, 'a\0')
220 self.assertRaises(ValueError, stdscr.addnstr, 'a\0', 1)
221 self.assertRaises(ValueError, stdscr.insstr, 'a\0')
222 self.assertRaises(ValueError, stdscr.insnstr, 'a\0', 1)
249 self.stdscr.putwin(f)
353 curses.is_term_resized(*self.stdscr.getmaxyx())
357 curses.resize_term(*self.stdscr.getmaxyx())
361 stdscr = self.stdscr
372 self.stdscr.getkey()
378 stdscr = self.stdscr
379 encoding = stdscr.encoding
389 % (ch, stdscr.encoding, err))
390 read = stdscr.get_wch()
395 read = stdscr.get_wch()
403 stdscr = self.stdscr
405 encoding = stdscr.encoding
408 stdscr.encoding = 10
409 stdscr.encoding = encoding
411 del stdscr.encoding
414 stdscr = self.stdscr
425 signature = inspect.signature(stdscr.addch)
438 human_readable_signature = stdscr.addch.__doc__.split("\n")[0]
442 stdscr = self.stdscr
443 if not hasattr(stdscr, 'resize'):
445 box = curses.textpad.Textbox(stdscr, insert_mode=True)
446 lines, cols = stdscr.getmaxyx()
447 stdscr.resize(lines-2, cols-2)