def get_color_repr():
    if not sys.stdout.isatty():
        return False
    
    term =local.env.get("TERM", "")

    # Some terminals set TERM=xterm for compatibility
    if term.endswith("256color") or term == "xterm":
        return 3 if platform.system() == 'Darwin' else 4
    elif term.endswith("16color"):
        return 2
    elif term == "screen":
        return 1
    elif os.name == 'nt':
        return 0
    else:
        return 3
Checking selecting values from an Index via read_coordinates()
dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/colorlib/styles.py/get_color_repr--crossover with--dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_indexvalues.py/SelectValuesTestCase.test11a