Home | History | Annotate | Download | only in test

Lines Matching refs:stdscr

13 def test_textpad(stdscr, insert_mode=False):
21 stdscr.addstr(uly-3, ulx, "Use Ctrl-G to end editing (%s)." % mode)
22 stdscr.addstr(uly-2, ulx, "Be sure to try typing in the lower-right corner.")
24 textpad.rectangle(stdscr, uly-1, ulx-1, uly + nlines, ulx + ncols)
25 stdscr.refresh()
29 stdscr.addstr(uly+ncols+2, 0, "Text entered in the box\n")
30 stdscr.addstr(repr(contents))
31 stdscr.addstr('\n')
32 stdscr.addstr('Press any key')
33 stdscr.getch()
36 stdscr.move(uly+ncols+2 + i, 0)
37 stdscr.clrtoeol()
39 def main(stdscr):
40 stdscr.clear()
41 test_textpad(stdscr, False)
42 test_textpad(stdscr, True)