Did I find the right examples for you? yes no

All Samples(172)  |  Call(100)  |  Derive(3)  |  Import(69)
An abstraction around terminal capabilities

Unlike curses, this doesn't require clearing the screen before doing
anything, and it's friendlier to use. It keeps the endless calls to
``tigetstr()`` and ``tparm()`` out of your code, and it acts intelligently
when somebody pipes your output to a non-terminal.

Instance attributes:

  ``stream``(more...)

src/p/o/popcorn_maker-HEAD/vendor-local/lib/python/noseprogressive/result.py   popcorn_maker(Download)
from __future__ import with_statement
 
from blessings import Terminal
from nose.plugins.skip import SkipTest
from nose.result import TextTestResult
    def __init__(self, cwd, total_tests, stream, config=None):
        super(ProgressiveResult, self).__init__(stream, None, 0, config=config)
        self._cwd = cwd
        self._options = config.options
        self._term = Terminal(stream=stream,

src/n/o/nose-progressive-1.5.1/noseprogressive/result.py   nose-progressive(Download)
from __future__ import with_statement
 
from blessings import Terminal
from nose.plugins.skip import SkipTest
from nose.result import TextTestResult
    def __init__(self, cwd, total_tests, stream, config=None):
        super(ProgressiveResult, self).__init__(stream, None, 0, config=config)
        self._cwd = cwd
        self._options = config.options
        self._term = Terminal(stream=stream,

src/n/o/nose-progressive-HEAD/noseprogressive/result.py   nose-progressive(Download)
from __future__ import with_statement
 
from blessings import Terminal
from nose.plugins.skip import SkipTest
from nose.result import TextTestResult
    def __init__(self, cwd, total_tests, stream, config=None):
        super(ProgressiveResult, self).__init__(stream, None, 0, config=config)
        self._cwd = cwd
        self._options = config.options
        self._term = Terminal(stream=stream,

src/t/c/tchart-HEAD/tchart.py   tchart(Download)
import snack  # On Ubuntu do apt-get install python-newt to get snack module
from datetime import datetime, timedelta, date
from blessings import Terminal
from operator import itemgetter
 
# TODO "indent" is used and defined here an in construct_cmdline.  Define once?
        if istty:  # This is currently hard coded, but can be an input.
            term = Terminal()
        else:
            term = Terminal(stream="not tty")  # When not run from a tty

src/w/e/wercker-0.8.3/werckercli/cli.py   wercker(Download)
import sys
 
from blessings import Terminal
 
from werckercli.git import get_priority
def get_term():
    return Terminal(stream=terminal_file_handle)
 
 
def puts(content, level=INFO):

src/t/r/tracefront-0.4/traceback/__init__.py   tracefront(Download)
import types
 
from blessings import Terminal
 
 
        cwd='' if environ.get('TRACEFRONT_ABSOLUTE_PATHS', '').lower() in
            ('1', 'true', 'yes', 'on') else _cwd,
        term=Terminal(stream=stream),  # () makes blessings not style. Hacky.
        function_color=int(environ.get('TRACEFRONT_FUNCTION_COLOR', 12)),
        dim_color=int(environ.get('TRACEFRONT_DIM_COLOR', 8)),
 
    if not term:
        term = Terminal()
 
    if extracted_tb:

src/w/e/wercker-cli-HEAD/werckercli/cli.py   wercker-cli(Download)
import sys
 
from blessings import Terminal
 
from werckercli.git import get_priority
def get_term():
    return Terminal(stream=terminal_file_handle)
 
 
def puts(content, level=INFO):

src/t/r/tracefront-HEAD/traceback/__init__.py   tracefront(Download)
import types
 
from blessings import Terminal
 
 
        cwd='' if environ.get('TRACEFRONT_ABSOLUTE_PATHS', '').lower() in
            ('1', 'true', 'yes', 'on') else _cwd,
        term=Terminal(stream=stream),  # () makes blessings not style. Hacky.
        function_color=int(environ.get('TRACEFRONT_FUNCTION_COLOR', 12)),
        dim_color=int(environ.get('TRACEFRONT_DIM_COLOR', 8)),
 
    if not term:
        term = Terminal()
 
    if extracted_tb:

src/l/u/luca-1.0/luca/commandline.py   luca(Download)
def main():
    args = docopt(__doc__)
    force_styling = None if args['-C'] else True if args['-c'] else False
    terminal=blessings.Terminal(force_styling=force_styling)
    for line in _main(args, terminal):

src/l/u/luca-HEAD/luca/commandline.py   luca(Download)
def main():
    args = docopt(__doc__)
    force_styling = None if args['-C'] else True if args['-c'] else False
    terminal=blessings.Terminal(force_styling=force_styling)
    for line in _main(args, terminal):

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next