• Home
  • Raw
  • Download

Lines Matching refs:curses

26 curses = import_module('curses')  variable
31 return unittest.skipUnless(hasattr(curses, name),
55 curses.setupterm(fd=fd)
67 self.stdscr = curses.initscr()
68 curses.savetty()
71 curses.resetty()
72 curses.endwin()
77 win = curses.newwin(10,10)
78 win = curses.newwin(5,5, 5,5)
79 win2 = curses.newwin(15,15, 5,5)
82 for args in [('a'), ('a', curses.A_BOLD),
83 (4,4, 'a'), (5,5, 'a', curses.A_BOLD)]:
98 stdscr.addnstr('1234', 3, curses.A_BOLD)
100 stdscr.addnstr(5,5, '1234', 3, curses.A_BOLD)
102 stdscr.attron(curses.A_BOLD)
103 stdscr.attroff(curses.A_BOLD)
104 stdscr.attrset(curses.A_BOLD)
106 stdscr.bkgd(' ', curses.A_REVERSE)
108 stdscr.bkgdset(' ', curses.A_REVERSE)
126 stdscr.echochar('a', curses.A_BOLD)
128 stdscr.hline('-', 5, curses.A_BOLD)
130 stdscr.hline(1,1,'-', 5, curses.A_BOLD)
138 stdscr.insnstr('abc', 3, curses.A_BOLD)
140 stdscr.insnstr(5, 5, 'abc', 3, curses.A_BOLD)
143 stdscr.insstr('def', curses.A_BOLD)
145 stdscr.insstr(5, 5, 'def', curses.A_BOLD)
173 stdscr.vline('a', 3, curses.A_STANDOUT)
174 stdscr.chgat(5, 2, 3, curses.A_BLINK)
175 stdscr.chgat(3, curses.A_BOLD)
176 stdscr.chgat(5, 8, curses.A_UNDERLINE)
177 stdscr.chgat(curses.A_BLINK)
181 stdscr.vline(1,1, 'a', 3, curses.A_STANDOUT)
183 if hasattr(curses, 'resize'):
185 if hasattr(curses, 'enclose'):
196 for func in [curses.baudrate, curses.beep, curses.can_change_color,
197 curses.cbreak, curses.def_prog_mode, curses.doupdate,
198 curses.filter, curses.flash, curses.flushinp,
199 curses.has_colors, curses.has_ic, curses.has_il,
200 curses.isendwin, curses.killchar, curses.longname,
201 curses.nocbreak, curses.noecho, curses.nonl,
202 curses.noqiflush, curses.noraw,
203 curses.reset_prog_mode, curses.termattrs,
204 curses.termname, curses.erasechar, curses.getsyx]:
208 if curses.tigetstr("cnorm"):
209 curses.curs_set(1)
210 curses.delay_output(1)
211 curses.echo() ; curses.echo(1)
216 curses.getwin(f)
218 curses.halfdelay(1)
219 curses.intrflush(1)
220 curses.meta(1)
221 curses.napms(100)
222 curses.newpad(50,50)
223 win = curses.newwin(5,5)
224 win = curses.newwin(5,5, 1,1)
225 curses.nl() ; curses.nl(1)
226 curses.putp(b'abc')
227 curses.qiflush()
228 curses.raw() ; curses.raw(1)
229 curses.setsyx(5,5)
230 curses.tigetflag('hc')
231 curses.tigetnum('co')
232 curses.tigetstr('cr')
233 curses.tparm(b'cr')
234 curses.typeahead(sys.__stdin__.fileno())
235 curses.unctrl('a')
236 curses.ungetch('a')
237 curses.use_env(1)
241 if not curses.has_colors():
243 curses.start_color()
244 curses.init_pair(2, 1,1)
245 curses.color_content(1)
246 curses.color_pair(2)
247 curses.pair_content(curses.COLOR_PAIRS - 1)
248 curses.pair_number(0)
250 if hasattr(curses, 'use_default_colors'):
251 curses.use_default_colors()
255 curses.keyname(13)
259 curses.has_key(13)
263 (availmask, oldmask) = curses.mousemask(curses.BUTTON1_PRESSED)
266 curses.mouseinterval(10)
268 curses.ungetmouse(0, 0, 0, 0, curses.BUTTON1_PRESSED)
269 m = curses.getmouse()
272 w = curses.newwin(10, 10)
273 p = curses.panel.new_panel(w)
275 with self.assertRaises(curses.panel.error,
280 w = curses.newwin(10, 10)
281 p = curses.panel.new_panel(w)
292 panel = curses.panel.new_panel(self.stdscr)
300 panel = curses.panel.new_panel(self.stdscr)
305 curses.is_term_resized(*self.stdscr.getmaxyx())
309 curses.resize_term(*self.stdscr.getmaxyx())
314 lines, cols = curses.LINES, curses.COLS
317 curses.resizeterm(new_lines, new_cols)
319 self.assertEqual(curses.LINES, new_lines)
320 self.assertEqual(curses.COLS, new_cols)
323 curses.ungetch(1025)
327 b = curses.tparm(curses.tigetstr("cup"), 5, 3)
334 for name in curses.ascii.controlnames:
335 self.assertTrue(hasattr(curses.ascii, name), name)
344 check(curses.ascii.isalnum, b.isalnum())
345 check(curses.ascii.isalpha, b.isalpha())
346 check(curses.ascii.isdigit, b.isdigit())
347 check(curses.ascii.islower, b.islower())
348 check(curses.ascii.isspace, b.isspace())
349 check(curses.ascii.isupper, b.isupper())
351 check(curses.ascii.isascii, i < 128)
352 check(curses.ascii.ismeta, i >= 128)
353 check(curses.ascii.isctrl, i < 32)
354 check(curses.ascii.iscntrl, i < 32 or i == 127)
355 check(curses.ascii.isblank, c in ' \t')
356 check(curses.ascii.isgraph, 32 < i <= 126)
357 check(curses.ascii.isprint, 32 <= i <= 126)
358 check(curses.ascii.ispunct, c in string.punctuation)
359 check(curses.ascii.isxdigit, c in string.hexdigits)
362 ascii = curses.ascii.ascii
368 ctrl = curses.ascii.ctrl
375 alt = curses.ascii.alt
381 unctrl = curses.ascii.unctrl