Lines Matching refs:stdscr
75 self.stdscr = curses.initscr()
85 stdscr = self.stdscr
90 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]:
106 stdscr.addnstr('1234', 3)
107 stdscr.addnstr('1234', 3, curses.A_BOLD)
108 stdscr.addnstr(4,4, '1234', 3)
109 stdscr.addnstr(5,5, '1234', 3, curses.A_BOLD)
111 stdscr.attron(curses.A_BOLD)
112 stdscr.attroff(curses.A_BOLD)
113 stdscr.attrset(curses.A_BOLD)
114 stdscr.bkgd(' ')
115 stdscr.bkgd(' ', curses.A_REVERSE)
116 stdscr.bkgdset(' ')
117 stdscr.bkgdset(' ', curses.A_REVERSE)
135 stdscr.clearok(1)
137 win4 = stdscr.derwin(2,2)
138 win4 = stdscr.derwin(1,1, 5,5)
141 stdscr.echochar('a')
142 stdscr.echochar('a', curses.A_BOLD)
143 stdscr.hline('-', 5)
144 stdscr.hline('-', 5, curses.A_BOLD)
145 stdscr.hline(1,1,'-', 5)
146 stdscr.hline(1,1,'-', 5, curses.A_BOLD)
148 stdscr.idcok(1)
149 stdscr.idlok(1)
150 if hasattr(stdscr, 'immedok'):
151 stdscr.immedok(1)
152 stdscr.immedok(0)
153 stdscr.insch('c')
154 stdscr.insdelln(1)
155 stdscr.insnstr('abc', 3)
156 stdscr.insnstr('abc', 3, curses.A_BOLD)
157 stdscr.insnstr(5, 5, 'abc', 3)
158 stdscr.insnstr(5, 5, 'abc', 3, curses.A_BOLD)
160 stdscr.insstr('def')
161 stdscr.insstr('def', curses.A_BOLD)
162 stdscr.insstr(5, 5, 'def')
163 stdscr.insstr(5, 5, 'def', curses.A_BOLD)
164 stdscr.is_linetouched(0)
165 stdscr.keypad(1)
166 stdscr.leaveok(1)
167 stdscr.move(3,3)
169 stdscr.nodelay(1)
170 stdscr.notimeout(1)
175 stdscr.redrawln(1,2)
177 stdscr.scrollok(1)
178 stdscr.scroll()
179 stdscr.scroll(2)
180 stdscr.scroll(-3)
182 stdscr.move(12, 2)
183 stdscr.setscrreg(10,15)
184 win3 = stdscr.subwin(10,10)
185 win3 = stdscr.subwin(10,10, 5,5)
186 if hasattr(stdscr, 'syncok') and not sys.platform.startswith("sunos"):
187 stdscr.syncok(1)
188 stdscr.timeout(5)
189 stdscr.touchline(5,5)
190 stdscr.touchline(5,5,0)
191 stdscr.vline('a', 3)
192 stdscr.vline('a', 3, curses.A_STANDOUT)
193 if hasattr(stdscr, 'chgat'):
194 stdscr.chgat(5, 2, 3, curses.A_BLINK)
195 stdscr.chgat(3, curses.A_BOLD)
196 stdscr.chgat(5, 8, curses.A_UNDERLINE)
197 stdscr.chgat(curses.A_BLINK)
198 stdscr.refresh()
200 stdscr.vline(1,1, 'a', 3)
201 stdscr.vline(1,1, 'a', 3, curses.A_STANDOUT)
203 if hasattr(stdscr, 'resize'):
204 stdscr.resize(25, 80)
205 if hasattr(stdscr, 'enclose'):
206 stdscr.enclose(10, 10)
208 self.assertRaises(ValueError, stdscr.getstr, -400)
209 self.assertRaises(ValueError, stdscr.getstr, 2, 3, -400)
210 self.assertRaises(ValueError, stdscr.instr, -2)
211 self.assertRaises(ValueError, stdscr.instr, 2, 3, -2)
238 self.stdscr.putwin(f)
338 curses.is_term_resized(*self.stdscr.getmaxyx())
342 curses.resize_term(*self.stdscr.getmaxyx())
346 stdscr = self.stdscr
357 self.stdscr.getkey()
364 stdscr = self.stdscr
365 if not hasattr(stdscr, 'resize'):
367 box = curses.textpad.Textbox(stdscr, insert_mode=True)
368 lines, cols = stdscr.getmaxyx()
369 stdscr.resize(lines-2, cols-2)