Home
last modified time | relevance | path

Searched refs:curses (Results 1 – 25 of 133) sorted by relevance

123456

/external/python/cpython2/Lib/test/
Dtest_curses.py28 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 …]
Dcurses_tests.py10 import curses
11 from curses import textpad
23 win = curses.newwin(nlines, ncols, uly, ulx)
46 curses.wrapper(main)
/external/python/cpython3/Lib/test/
Dtest_curses.py27 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 …]
Dcurses_tests.py10 import curses
11 from curses import textpad
23 win = curses.newwin(nlines, ncols, uly, ulx)
46 curses.wrapper(main)
/external/python/cpython2/Demo/curses/
Dncurses.py8 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 …]
Dtclock.py8 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 …]
Dxmas.py26 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 …]
Drain.py7 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 …]
Drepeat.py26 import curses
39 w = curses.initscr()
45 except curses.error:
56 curses.endwin()
/external/python/cpython3/Lib/curses/
Dtextpad.py3 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__.py26 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/cpython2/Lib/curses/
Dtextpad.py3 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 …]
Dwrapper.py10 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__.py16 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/Tools/demo/
Dlife.py18 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/python/cpython3/Doc/howto/
Dcurses.rst13 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/
Dcurses_ui.py21 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 …]
Dcurses_ui_test.py21 import curses
137 def _screen_draw_text_line(self, row, line, attr=curses.A_NORMAL, color=None):
150 if c == curses.KEY_RESIZE:
157 elif c == curses.KEY_MOUSE:
179 curses.BUTTON1_CLICKED)
393 command_sequence=[string_to_codes("babble\n"), [curses.KEY_NPAGE] * 2 +
394 [curses.KEY_PPAGE] + self._EXIT])
452 [curses.KEY_END] * 2 + [curses.KEY_HOME] + self._EXIT
529 [curses.KEY_UP], # Hit Up and Enter.
549 [curses.KEY_UP],
[all …]
/external/python/cpython2/Doc/howto/
Dcurses.rst14 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/swiftshader/third_party/LLVM/utils/lit/lit/
DProgressBar.py94 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/
DREADME.OpenBSD7 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/
DProgressBar.py98 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/swiftshader/third_party/llvm-7.0/llvm/utils/lit/lit/
DProgressBar.py98 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/googletest/ci/
Dbuild-linux-bazel.sh34 bazel build --curses=no //...:all
35 bazel test --curses=no //...:all
36 bazel test --curses=no //...:all --define absl=1
/external/python/cpython2/Doc/library/
Dcurses.panel.rst1 :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.

123456