Skip to content

Commit e930e82

Browse files
authored
fix for win driver (#2303)
1 parent f8b51ea commit e930e82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/textual/driver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/textual/drivers/windows_driver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import asyncio
4+
import sys
45
from threading import Event, Thread
56
from 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

0 commit comments

Comments
 (0)