def get_console_size():
    import platform
    current_os = platform.system()
    tuple_xy=None
    if current_os == "Windows":
        tuple_xy = _get_console_size_windows()
        if tuple_xy is None:
            tuple_xy = _get_console_size_tput()
            # needed for window's python in cygwin's xterm!
    if current_os in ["Linux", "Darwin"] or current_os.startswith("CYGWIN"):
        tuple_xy = _get_console_size_linux()
    if tuple_xy is None:
        tuple_xy = (80, 25)      # default value
    return tuple_xy
Wrap replace_headers() for API backward compatibility.
dataset/ETHPy150Open aldebaran/qibuild/python/qisys/ui.py/get_console_size--crossover with--dataset/ETHPy150Open kevin1024/vcrpy/vcr/filters.py/remove_headers