src/streamlink_cli/utils/progress.py
def create_status_line(**params):
    """Creates a status line with appropriate size."""
    max_size = get_terminal_size().columns - 1

    for fmt in PROGRESS_FORMATS:
        status = fmt.format(**params)

        if len(status) <= max_size:
            break

    return status
def create_status_line(**params):
    max_size = get_terminal_size().columns - 1

    for fmt in PROGRESS_FORMATS:
        status = fmt.format(**params)

        if len(status) <= max_size:
            break

    return status
def create_status_line ( * * params ) : max_size = get_terminal_size ( ) . columns - 1 for fmt in PROGRESS_FORMATS : status = fmt . format ( * * params ) if len ( status ) <= max_size : break return status
Creates a status line with appropriate size.
Creates a status line with appropriate size .