def METHOD_NAME(use):
    if use == 1:
        if not (sys.stderr.isatty() or sys.stdout.isatty()):
            use = 0
        if Utils.is_win32 and os.name != 'java':
            term = os.environ.get('TERM', '')
        else:
            term = os.environ.get('TERM', 'dumb')
        if term in ('dumb', 'emacs'):
            use = 0
    if use >= 1:
        os.environ['TERM'] = 'vt100'
    colors_lst['USE'] = use