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