Print objects to self.stdout. For details on the parameters, refer to the `print_to` method documentation.
(
self,
*objects: Any,
sep: str = " ",
end: str = "\n",
style: StyleType | None = None,
soft_wrap: bool = True,
justify: JustifyMethod | None = None,
emoji: bool = False,
markup: bool = False,
highlight: bool = False,
rich_print_kwargs: Mapping[str, Any] | None = None,
**kwargs: Any, # noqa: ARG002
)
| 1515 | Cmd2GeneralConsole(file=sys.stderr).print(self.broken_pipe_warning) |
| 1516 | |
| 1517 | def poutput( |
| 1518 | self, |
| 1519 | *objects: Any, |
| 1520 | sep: str = " ", |
| 1521 | end: str = "\n", |
| 1522 | style: StyleType | None = None, |
| 1523 | soft_wrap: bool = True, |
| 1524 | justify: JustifyMethod | None = None, |
| 1525 | emoji: bool = False, |
| 1526 | markup: bool = False, |
| 1527 | highlight: bool = False, |
| 1528 | rich_print_kwargs: Mapping[str, Any] | None = None, |
| 1529 | **kwargs: Any, # noqa: ARG002 |
| 1530 | ) -> None: |
| 1531 | """Print objects to self.stdout. |
| 1532 | |
| 1533 | For details on the parameters, refer to the `print_to` method documentation. |
| 1534 | """ |
| 1535 | self.print_to( |
| 1536 | self.stdout, |
| 1537 | *objects, |
| 1538 | sep=sep, |
| 1539 | end=end, |
| 1540 | style=style, |
| 1541 | soft_wrap=soft_wrap, |
| 1542 | justify=justify, |
| 1543 | emoji=emoji, |
| 1544 | markup=markup, |
| 1545 | highlight=highlight, |
| 1546 | rich_print_kwargs=rich_print_kwargs, |
| 1547 | ) |
| 1548 | |
| 1549 | def perror( |
| 1550 | self, |