Reconfigures the global console by replacing it with another. Args: *args (Any): Positional arguments for the replacement :class:`~rich.console.Console`. **kwargs (Any): Keyword arguments for the replacement :class:`~rich.console.Console`.
(*args: Any, **kwargs: Any)
| 37 | |
| 38 | |
| 39 | def reconfigure(*args: Any, **kwargs: Any) -> None: |
| 40 | """Reconfigures the global console by replacing it with another. |
| 41 | |
| 42 | Args: |
| 43 | *args (Any): Positional arguments for the replacement :class:`~rich.console.Console`. |
| 44 | **kwargs (Any): Keyword arguments for the replacement :class:`~rich.console.Console`. |
| 45 | """ |
| 46 | from rich.console import Console |
| 47 | |
| 48 | new_console = Console(*args, **kwargs) |
| 49 | _console = get_console() |
| 50 | _console.__dict__ = new_console.__dict__ |
| 51 | |
| 52 | |
| 53 | def print( |
nothing calls this directly
no test coverage detected