Lines Matching refs:stdscr
90 screen; this is usually called ``stdscr`` after the name of the
94 stdscr = curses.initscr()
116 stdscr.keypad(True)
122 stdscr.keypad(False)
142 def main(stdscr):
144 stdscr.clear()
149 stdscr.addstr(i, 0, '10 divided by {} is {}'.format(v, 10/v))
151 stdscr.refresh()
152 stdscr.getkey()
174 The ``stdscr`` object returned by the :func:`~curses.initscr` function is a
217 ``stdscr.refresh()`` or the :meth:`refresh` method of some other relevant
269 the ``stdscr`` window, while :c:func:`mvaddstr` moves to a given y,x
272 using ``stdscr`` by default. :c:func:`mvwaddstr` allows specifying both
275 Fortunately the Python interface hides all these details. ``stdscr``
368 stdscr.addstr(0, 0, "Current mode: Typing mode",
370 stdscr.refresh()
395 stdscr.addstr("Pretty text", curses.color_pair(1))
396 stdscr.refresh()
418 stdscr.addstr(0,0, "RED ALERT!", curses.color_pair(1))
468 c = stdscr.getch()
492 s = stdscr.getstr(0,0, 15)
503 def main(stdscr):
504 stdscr.addstr(0, 0, "Enter IM message: (hit Ctrl-G to send)")
507 rectangle(stdscr, 1,0, 1+5+1, 1+30+1)
508 stdscr.refresh()