def output(self, output, status=None):
if output:<EOL><INDENT>size = self.cli.output.get_size()<EOL>margin = self.get_output_margin(status)<EOL>fits = True<EOL>buf = []<EOL>output_via_pager = self.explicit_pager and special.is_pager_enabled()<EOL>for i, line in enumerate(output, <NUM_LIT:1>):<EOL><INDENT>special.write_tee(line)<EOL>special.write_once(line)<EOL>if fits or output_via_pager:<EOL><INDENT>buf.append(line)<EOL>if len(line) > size.columns or i > (size.rows - margin):<EOL><INDENT>fits = False<EOL>if not self.explicit_pager and special.is_pager_enabled():<EOL><INDENT>output_via_pager = True<EOL><DEDENT>if not output_via_pager:<EOL><INDENT>for line in buf:<EOL><INDENT>click.secho(line)<EOL><DEDENT>buf = []<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>click.secho(line)<EOL><DEDENT><DEDENT>if buf:<EOL><INDENT>if output_via_pager:<EOL><INDENT>click.echo_via_pager("<STR_LIT:\n>".join(buf))<EOL><DEDENT>else:<EOL><INDENT>for line in buf:<EOL><INDENT>click.secho(line)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>if status:<EOL><INDENT>click.secho(status)<EOL><DEDENT>
Output text to stdout or a pager command.
        The status text is not outputted to pager or files.
        The message will be logged in the audit log, if enabled. The
        message will be written to the tee file, if enabled. The
        message will be written to the output file, if enabled.