/external/python/cpython2/Lib/test/ |
D | test_curses.py | 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) [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()
|
D | life.py | 21 import curses 202 elif c == curses.KEY_UP and ypos>0: ypos -= 1 203 elif c == curses.KEY_DOWN and ypos<board.Y-1: ypos += 1 204 elif c == curses.KEY_LEFT and xpos>0: xpos -= 1 205 elif c == curses.KEY_RIGHT and xpos<board.X-1: xpos += 1 216 curses.wrapper(main)
|
D | README | 1 This is a collection of demos and tests for the curses module.
|
/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/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 …]
|
D | index.rst | 18 curses.rst
|
/external/swiftshader/third_party/LLVM/utils/lit/lit/ |
D | ProgressBar.py | 94 try: import curses 102 try: curses.setupterm() 106 self.COLS = curses.tigetnum('cols') 107 self.LINES = curses.tigetnum('lines') 108 self.XN = curses.tigetflag('xenl') 119 setattr(self, color, curses.tparm(set_fg, i) or '') 123 setattr(self, color, curses.tparm(set_fg_ansi, i) or '') 127 setattr(self, 'BG_'+color, curses.tparm(set_bg, i) or '') 131 setattr(self, 'BG_'+color, curses.tparm(set_bg_ansi, i) or '') 137 import curses [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/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.
|
D | allos.rst | 26 curses.rst 27 curses.ascii.rst 28 curses.panel.rst
|
D | curses.rst | 1 :mod:`curses` --- Terminal handling for character-cell displays 4 .. module:: curses 5 :synopsis: An interface to the curses library, providing portable terminal 14 The :mod:`curses` module provides an interface to the curses library, the 17 While curses is most widely used in the Unix environment, versions are available 19 designed to match the API of ncurses, an open-source curses library hosted on 38 Module :mod:`curses.ascii` 41 Module :mod:`curses.panel` 42 A panel stack extension that adds depth to curses windows. 44 Module :mod:`curses.textpad` [all …]
|
D | curses.ascii.rst | 2 :mod:`curses.ascii` --- Utilities for ASCII characters 5 .. module:: curses.ascii 13 The :mod:`curses.ascii` module supplies name constants for ASCII characters and
|
/external/libedit/ |
D | configure.ac | 54 [AC_CHECK_LIB(curses, tgetent,, 72 …l.h limits.h malloc.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h curses.h ncurses.h sys/cd… 76 ## include curses.h to prevent "Present But Cannot Be Compiled" 79 # include <curses.h>
|
/external/python/cpython2/Doc/tools/ |
D | susp-ignored.csv | 16 howto/curses,,:black,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and" 17 howto/curses,,:blue,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and" 18 howto/curses,,:cyan,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and" 19 howto/curses,,:green,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and" 20 howto/curses,,:magenta,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and" 21 howto/curses,,:red,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and" 22 howto/curses,,:white,"7:white." 23 howto/curses,,:yellow,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
|
/external/python/cpython2/Demo/ |
D | README | 23 curses A set of curses demos.
|
/external/toybox/kconfig/lxdialog/ |
D | check-lxdialog.sh | 30 elif [ -f /usr/include/ncurses/curses.h ]; then
|