/external/python/cpython2/Lib/test/ |
D | test_curses.py | 28 curses = import_module('curses') variable 32 import curses.panel 37 return unittest.skipUnless(hasattr(curses, name), 61 curses.setupterm(fd=fd) 75 self.stdscr = curses.initscr() 76 curses.savetty() 79 curses.resetty() 80 curses.endwin() 86 win = curses.newwin(10,10) 87 win = curses.newwin(5,5, 5,5) [all …]
|
D | curses_tests.py | 10 import curses 11 from curses import textpad 23 win = curses.newwin(nlines, ncols, uly, ulx) 46 curses.wrapper(main)
|
/external/python/cpython3/Lib/test/ |
D | test_curses.py | 27 curses = import_module('curses') variable 31 import curses.panel 36 return unittest.skipUnless(hasattr(curses, name), 60 curses.setupterm(fd=fd) 74 self.stdscr = curses.initscr() 75 curses.savetty() 78 curses.resetty() 79 curses.endwin() 85 win = curses.newwin(10,10) 86 win = curses.newwin(5,5, 5,5) [all …]
|
D | curses_tests.py | 10 import curses 11 from curses import textpad 23 win = curses.newwin(nlines, ncols, uly, ulx) 46 curses.wrapper(main)
|
/external/python/cpython2/Demo/curses/ |
D | ncurses.py | 8 import curses 9 from curses import panel 25 curses.napms(nap_msec) 28 stdscr.move(curses.LINES - 1, 0) 33 win = curses.newwin(rows, cols, tly, tlx) 35 if curses.has_colors(): 36 if color == curses.COLOR_BLUE: 37 fg = curses.COLOR_WHITE 39 fg = curses.COLOR_BLACK 41 curses.init_pair(color, fg, bg) [all …]
|
D | tclock.py | 8 import curses, time 25 if curses.has_colors(): 26 stdscr.attrset(curses.color_pair(pair)) 72 my_bg = curses.COLOR_BLACK 77 if curses.has_colors(): 78 curses.init_pair(1, curses.COLOR_RED, my_bg) 79 curses.init_pair(2, curses.COLOR_MAGENTA, my_bg) 80 curses.init_pair(3, curses.COLOR_GREEN, my_bg) 82 cx = (curses.COLS - 1) // 2 83 cy = curses.LINES // 2 [all …]
|
D | xmas.py | 26 import curses 32 if curses.has_colors(): 34 curses.init_pair(n, color, my_bg) 35 win.attroff(curses.A_COLOR) 36 win.attron(curses.color_pair(n)) 39 if curses.has_colors(): 40 win.attrset(curses.color_pair(0)) 43 curses.napms(msecs) 45 curses.beep() 90 set_color(treescrn, curses.COLOR_GREEN) [all …]
|
D | rain.py | 7 import curses 16 if curses.has_colors(): 18 color = curses.color_pair(z) 20 color = color | curses.A_BOLD 31 if curses.has_colors(): 32 bg = curses.COLOR_BLACK 33 curses.init_pair(1, curses.COLOR_BLUE, bg) 34 curses.init_pair(2, curses.COLOR_CYAN, bg) 36 curses.nl() 37 curses.noecho() [all …]
|
D | repeat.py | 26 import curses 39 w = curses.initscr() 45 except curses.error: 56 curses.endwin()
|
/external/python/cpython2/Lib/curses/ |
D | textpad.py | 3 import curses 4 import curses.ascii 10 win.vline(uly+1, ulx, curses.ACS_VLINE, lry - uly - 1) 11 win.hline(uly, ulx+1, curses.ACS_HLINE, lrx - ulx - 1) 12 win.hline(lry, ulx+1, curses.ACS_HLINE, lrx - ulx - 1) 13 win.vline(uly+1, lrx, curses.ACS_VLINE, lry - uly - 1) 14 win.addch(uly, ulx, curses.ACS_ULCORNER) 15 win.addch(uly, lrx, curses.ACS_URCORNER) 16 win.addch(lry, lrx, curses.ACS_LRCORNER) 17 win.addch(lry, ulx, curses.ACS_LLCORNER) [all …]
|
D | wrapper.py | 10 import curses 22 stdscr = curses.initscr() 26 curses.noecho() 27 curses.cbreak() 39 curses.start_color() 48 curses.echo() 49 curses.nocbreak() 50 curses.endwin()
|
D | __init__.py | 16 from curses.wrapper import wrapper 29 import _curses, curses 37 setattr(curses, key, value) 46 import _curses, curses 49 curses.COLORS = _curses.COLORS 51 curses.COLOR_PAIRS = _curses.COLOR_PAIRS
|
/external/python/cpython3/Lib/curses/ |
D | textpad.py | 3 import curses 4 import curses.ascii 10 win.vline(uly+1, ulx, curses.ACS_VLINE, lry - uly - 1) 11 win.hline(uly, ulx+1, curses.ACS_HLINE, lrx - ulx - 1) 12 win.hline(lry, ulx+1, curses.ACS_HLINE, lrx - ulx - 1) 13 win.vline(uly+1, lrx, curses.ACS_VLINE, lry - uly - 1) 14 win.addch(uly, ulx, curses.ACS_ULCORNER) 15 win.addch(uly, lrx, curses.ACS_URCORNER) 16 win.addch(lry, lrx, curses.ACS_LRCORNER) 17 win.addch(lry, ulx, curses.ACS_LLCORNER) [all …]
|
D | __init__.py | 26 import _curses, curses 34 setattr(curses, key, value) 43 import _curses, curses 46 curses.COLORS = _curses.COLORS 48 curses.COLOR_PAIRS = _curses.COLOR_PAIRS
|
/external/python/cpython3/Tools/demo/ |
D | life.py | 18 import curses 77 if curses.has_colors(): 79 self.scr.attrset(curses.color_pair(random.randrange(1, 7))) 117 if curses.has_colors(): 119 self.scr.attrset(curses.color_pair( 157 if curses.has_colors(): 158 stdscr.attrset(curses.color_pair(1)) 174 if curses.has_colors(): 175 curses.init_pair(1, curses.COLOR_BLUE, 0) 176 curses.init_pair(2, curses.COLOR_CYAN, 0) [all …]
|
/external/llvm-project/lldb/utils/lui/ |
D | cui.py | 9 import curses 10 import curses.ascii 17 self.win = curses.newwin(h, w, y, x) 40 self.win.bkgd(curses.color_pair(1)) 54 self.win.addstr(0, 0, text, curses.A_REVERSE) 127 attr = curses.A_NORMAL 129 attr = curses.A_REVERSE 135 except curses.error: 155 if event == curses.KEY_UP: 157 if event == curses.KEY_DOWN: [all …]
|
D | statuswin.py | 12 import curses 21 ('F3', 'Cycle-focus', curses.KEY_F3), 22 ('F10', 'Quit', curses.KEY_F10)] 27 self.win.addstr('{0}'.format(key[0]), curses.A_REVERSE) 28 self.win.addstr(' {0} '.format(key[1]), curses.A_NORMAL)
|
/external/python/cpython3/Doc/howto/ |
D | curses.rst | 13 This document describes how to use the :mod:`curses` extension 17 What is curses? 20 The curses library supplies a terminal-independent screen-painting and 36 The curses library provides fairly basic functionality, providing the 40 appearance---and the curses library will figure out what control codes 41 need to be sent to the terminal to produce the right output. curses 46 The curses library was originally written for BSD Unix; the later System V 47 versions of Unix from AT&T added many enhancements and new functions. BSD curses 53 versions of curses carried by some proprietary Unixes may not support 56 The Windows version of Python doesn't include the :mod:`curses` [all …]
|
/external/tensorflow/tensorflow/python/debug/cli/ |
D | curses_ui.py | 21 import curses 22 from curses import textpad 234 127: curses.KEY_BACKSPACE, # Backspace 235 curses.KEY_DC: 4, # Delete 239 cli_shared.COLOR_WHITE: curses.COLOR_WHITE, 240 cli_shared.COLOR_RED: curses.COLOR_RED, 241 cli_shared.COLOR_GREEN: curses.COLOR_GREEN, 242 cli_shared.COLOR_YELLOW: curses.COLOR_YELLOW, 243 cli_shared.COLOR_BLUE: curses.COLOR_BLUE, 244 cli_shared.COLOR_CYAN: curses.COLOR_CYAN, [all …]
|
D | curses_ui_test.py | 21 import curses 142 def _screen_draw_text_line(self, row, line, attr=curses.A_NORMAL, color=None): 155 if c == curses.KEY_RESIZE: 162 elif c == curses.KEY_MOUSE: 184 curses.BUTTON1_CLICKED) 398 command_sequence=[string_to_codes("babble\n"), [curses.KEY_NPAGE] * 2 + 399 [curses.KEY_PPAGE] + self._EXIT]) 457 [curses.KEY_END] * 2 + [curses.KEY_HOME] + self._EXIT 534 [curses.KEY_UP], # Hit Up and Enter. 554 [curses.KEY_UP], [all …]
|
/external/python/cpython2/Doc/howto/ |
D | curses.rst | 14 the :mod:`curses` extension module to control the display. 17 What is curses? 20 The curses library supplies a terminal-independent screen-painting and 35 The curses library hides all the details of different terminals, and provides 38 ways---adding text, erasing it, changing its appearance---and the curses library 42 The curses library was originally written for BSD Unix; the later System V 43 versions of Unix from AT&T added many enhancements and new functions. BSD curses 49 versions of curses carried by some proprietary Unixes may not support 52 No one has made a Windows port of the curses module. On a Windows platform, try 58 The Python curses module [all …]
|
/external/python/cpython2/Misc/ |
D | README.OpenBSD | 7 checking curses.h presence... yes 8 configure: WARNING: curses.h: present but cannot be compiled 9 configure: WARNING: curses.h: check for missing prerequisite headers? 10 configure: WARNING: curses.h: see the Autoconf documentation 11 configure: WARNING: curses.h: section "Present But Cannot Be Compiled" 12 configure: WARNING: curses.h: proceeding with the preprocessor's result 13 configure: WARNING: curses.h: in the future, the compiler will take precedence
|
/external/llvm/utils/lit/lit/ |
D | ProgressBar.py | 98 try: import curses 106 try: curses.setupterm() 110 self.COLS = curses.tigetnum('cols') 111 self.LINES = curses.tigetnum('lines') 112 self.XN = curses.tigetflag('xenl') 138 import curses 139 return curses.tparm(to_bytes(arg), index).decode('utf-8') or '' 145 import curses 146 cap = curses.tigetstr(cap_name)
|
/external/llvm-project/llvm/utils/lit/lit/ |
D | ProgressBar.py | 98 try: import curses 106 try: curses.setupterm() 110 self.COLS = curses.tigetnum('cols') 111 self.LINES = curses.tigetnum('lines') 112 self.XN = curses.tigetflag('xenl') 138 import curses 139 return curses.tparm(to_bytes(arg), index).decode('utf-8') or '' 145 import curses 146 cap = curses.tigetstr(cap_name)
|
/external/python/cpython2/Doc/library/ |
D | curses.panel.rst | 1 :mod:`curses.panel` --- A panel stack extension for curses 4 .. module:: curses.panel 5 :synopsis: A panel stack extension that adds depth to curses windows. 19 The module :mod:`curses.panel` defines the following functions: 42 :func:`curses.doupdate`, so you'll have to do this yourself.
|