We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 268bd81 commit 1c87b82Copy full SHA for 1c87b82
curtsies/window.py
@@ -270,7 +270,11 @@ def __init__(
270
self._last_cursor_column: Optional[int] = None
271
self._last_cursor_row: Optional[int] = None
272
self.keep_last_line = keep_last_line
273
- self.cbreak = Cbreak(self.in_stream)
+ self.cbreak = (
274
+ Cbreak(self.in_stream)
275
+ if in_stream != sys.__stdin__ and out_stream != sys.__stdout__
276
+ else self.t.cbreak()
277
+ )
278
self.extra_bytes_callback = extra_bytes_callback
279
280
# whether another SIGWINCH is queued up
0 commit comments