/external/python/cpython2/Lib/test/ |
D | test_curses.py | 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, [all …]
|
D | curses_tests.py | 13 def test_textpad(stdscr, insert_mode=False): argument 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() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_curses.py | 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, [all …]
|
D | curses_tests.py | 13 def test_textpad(stdscr, insert_mode=False): argument 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() [all …]
|
/external/python/cpython2/Demo/curses/ |
D | rain.py | 21 stdscr.attrset(color) 28 global stdscr 29 stdscr = win 40 stdscr.timeout(0) 55 stdscr.addch(y, x, ord('.')) 57 stdscr.addch(ypos[j], xpos[j], ord('o')) 60 stdscr.addch(ypos[j], xpos[j], ord('O')) 63 stdscr.addch( ypos[j] - 1, xpos[j], ord('-')) 64 stdscr.addstr(ypos[j], xpos[j] - 1, "|.|") 65 stdscr.addch( ypos[j] + 1, xpos[j], ord('-')) [all …]
|
D | life.py | 133 def erase_menu(stdscr, menu_y): argument 135 stdscr.move(menu_y, 0) 136 stdscr.clrtoeol() 137 stdscr.move(menu_y+1, 0) 138 stdscr.clrtoeol() 140 def display_menu(stdscr, menu_y): argument 142 erase_menu(stdscr, menu_y) 143 stdscr.addstr(menu_y, 4, 145 stdscr.addstr(menu_y+1, 4, 148 def keyloop(stdscr): argument [all …]
|
D | tclock.py | 21 stdscr.addch(y, x, col) 26 stdscr.attrset(curses.color_pair(pair)) 68 global stdscr 69 stdscr = win 74 stdscr.nodelay(1) 75 stdscr.timeout(0) 93 stdscr.addstr(cy - sdy, cx + sdx, "%d" % (i + 1)) 95 stdscr.addstr(0, 0, 121 stdscr.attrset(curses.A_REVERSE) 123 stdscr.attroff(curses.A_REVERSE) [all …]
|
D | xmas.py | 44 if stdscr.getch() != -1: 50 stdscr.addch(y, 7, ord('|')) 53 stdscr.addch(19, x, ord('_')) 56 stdscr.addch(22, x, ord('_')) 61 stdscr.addch(4, 1, ord('S')) 62 stdscr.addch(6, 1, ord('E')) 63 stdscr.addch(8, 1, ord('A')) 64 stdscr.addch(10, 1, ord('S')) 65 stdscr.addch(12, 1, ord('O')) 66 stdscr.addch(14, 1, ord('N')) [all …]
|
D | ncurses.py | 12 if win is None: win = stdscr 28 stdscr.move(curses.LINES - 1, 0) 29 stdscr.clrtoeol() 30 stdscr.addstr(text) 68 global stdscr, nap_msec, mod 69 stdscr = win 73 stdscr.refresh() 77 stdscr.addstr("%d" % ((y + x) % 10))
|
/external/python/cpython3/Tools/demo/ |
D | life.py | 144 def erase_menu(stdscr, menu_y): argument 146 stdscr.move(menu_y, 0) 147 stdscr.clrtoeol() 148 stdscr.move(menu_y + 1, 0) 149 stdscr.clrtoeol() 152 def display_menu(stdscr, menu_y): argument 154 erase_menu(stdscr, menu_y) 158 stdscr.attrset(curses.color_pair(1)) 159 stdscr.addstr(menu_y, 4, 161 stdscr.addstr(menu_y + 1, 4, [all …]
|
/external/python/cpython3/Lib/curses/ |
D | __init__.py | 31 stdscr = _curses.initscr() 36 return stdscr 73 stdscr = initscr() 83 stdscr.keypad(1) 94 return func(stdscr, *args, **kwds) 98 stdscr.keypad(0)
|
D | textpad.py | 191 def test_editbox(stdscr): argument 194 stdscr.addstr(uly-2, ulx, "Use Ctrl-G to end editing.") 196 rectangle(stdscr, uly-1, ulx-1, uly + nlines, ulx + ncols) 197 stdscr.refresh()
|
/external/bcc/tools/ |
D | cachetop.py | 134 def handle_loop(stdscr, args): argument 136 stdscr.nodelay(1) 178 s = stdscr.getch() 203 stdscr.clear() 204 stdscr.addstr( 214 stdscr.addstr( 221 (height, width) = stdscr.getmaxyx() 232 stdscr.addstr( 241 stdscr.refresh()
|
/external/python/cpython2/Lib/curses/ |
D | wrapper.py | 22 stdscr = curses.initscr() 32 stdscr.keypad(1) 43 return func(stdscr, *args, **kwds) 47 stdscr.keypad(0)
|
D | __init__.py | 34 stdscr = _curses.initscr() 39 return stdscr
|
D | textpad.py | 191 def test_editbox(stdscr): argument 194 stdscr.addstr(uly-2, ulx, "Use Ctrl-G to end editing.") 196 rectangle(stdscr, uly-1, ulx-1, uly + nlines, ulx + ncols) 197 stdscr.refresh()
|
/external/autotest/client/profilers/powertop/src/ |
D | display.c | 94 getmaxyx(stdscr, maxy, maxx); in setup_windows() 98 title_bar_window = subwin(stdscr, 1, maxx, 0, 0); in setup_windows() 99 cstate_window = subwin(stdscr, 7, maxx, 2, 0); in setup_windows() 100 wakeup_window = subwin(stdscr, 1, maxx, 9, 0); in setup_windows() 101 battery_power_window = subwin(stdscr, 2, maxx, 10, 0); in setup_windows() 102 timerstat_window = subwin(stdscr, maxy-16, maxx, 12, 0); in setup_windows() 105 suggestion_window = subwin(stdscr, 3, maxx, maxy-4, 0); in setup_windows() 106 status_bar_window = subwin(stdscr, 1, maxx, maxy-1, 0); in setup_windows() 111 werase(stdscr); in setup_windows() 119 keypad(stdscr, TRUE); /* enable keyboard mapping */ in initialize_curses()
|
/external/toybox/kconfig/lxdialog/ |
D | yesno.c | 48 if (getmaxy(stdscr) < (height + 4)) in dialog_yesno() 50 if (getmaxx(stdscr) < (width + 4)) in dialog_yesno() 57 draw_shadow(stdscr, y, x, height, width); in dialog_yesno()
|
D | util.c | 254 attr_clear(stdscr, LINES, COLS, dlg.screen.atr); in dialog_clear() 259 wattrset(stdscr, dlg.screen.atr); in dialog_clear() 260 mvwaddstr(stdscr, 0, 1, (char *)dlg.backtitle); in dialog_clear() 261 wmove(stdscr, 1, 1); in dialog_clear() 263 waddch(stdscr, ACS_HLINE); in dialog_clear() 265 wnoutrefresh(stdscr); in dialog_clear() 280 keypad(stdscr, TRUE); in reset_dialog()
|
D | inputbox.c | 58 if (getmaxy(stdscr) <= (height - 2)) in dialog_inputbox() 60 if (getmaxx(stdscr) <= (width - 2)) in dialog_inputbox() 67 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox()
|
D | checklist.c | 129 if (getmaxy(stdscr) < (height + 6)) in dialog_checklist() 131 if (getmaxx(stdscr) < (width + 6)) in dialog_checklist() 140 draw_shadow(stdscr, y, x, height, width); in dialog_checklist()
|
D | menubox.c | 192 height = getmaxy(stdscr); in dialog_menu() 193 width = getmaxx(stdscr); in dialog_menu() 207 draw_shadow(stdscr, y, x, height, width); in dialog_menu()
|
D | textbox.c | 67 getmaxyx(stdscr, height, width); in dialog_textbox() 89 draw_shadow(stdscr, y, x, height, width); in dialog_textbox()
|
/external/python/cpython3/Doc/howto/ |
D | curses.rst | 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 [all …]
|
/external/python/cpython2/Doc/howto/ |
D | curses.rst | 81 the entire screen; this is usually called ``stdscr``, after the name of the 85 stdscr = curses.initscr() 106 stdscr.keypad(1) 111 curses.nocbreak(); stdscr.keypad(0); curses.echo() 140 The ``stdscr`` object returned by the :func:`initscr` function is a window 172 ``stdscr.refresh()`` or the :func:`refresh` method of some other relevant 213 string at the current cursor location in the ``stdscr`` window, while 216 window to use, instead of using ``stdscr`` by default. :func:`mvwaddstr` follows 219 Fortunately the Python interface hides all these details; ``stdscr`` is a window 300 stdscr.addstr(0, 0, "Current mode: Typing mode", [all …]
|