File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ def __init__(
2828 debug: Enable debug mode.
2929 size: Initial size of the terminal or `None` to detect.
3030 """
31- self ._file = app .console .file
3231 self ._app = app
3332 self ._debug = debug
3433 self ._size = size
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33import asyncio
4+ import sys
45from threading import Event , Thread
56from typing import TYPE_CHECKING , Callable
67
@@ -30,7 +31,7 @@ def __init__(
3031 size: Initial size of the terminal or `None` to detect.
3132 """
3233 super ().__init__ (app , debug = debug , size = size )
33-
34+ self . _file = sys . __stdout__
3435 self .exit_event = Event ()
3536 self ._event_thread : Thread | None = None
3637 self ._restore_console : Callable [[], None ] | None = None
You can’t perform that action at this time.
0 commit comments