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 febd0e4 commit 7cdc597Copy full SHA for 7cdc597
1 file changed
curtsies/window.py
@@ -272,9 +272,6 @@ def __init__(
272
self._last_cursor_column: Optional[int] = None
273
self._last_cursor_row: Optional[int] = None
274
self.keep_last_line = keep_last_line
275
- self.cbreak = (
276
- Cbreak(self.in_stream) if not self._use_blessed else self.t.cbreak()
277
- )
278
self.extra_bytes_callback = extra_bytes_callback
279
280
# whether another SIGWINCH is queued up
@@ -284,6 +281,9 @@ def __init__(
284
281
self.in_get_cursor_diff = False
285
282
286
283
def __enter__(self) -> "CursorAwareWindow":
+ self.cbreak = (
+ Cbreak(self.in_stream) if not self._use_blessed else self.t.cbreak()
+ )
287
self.cbreak.__enter__()
288
self.top_usable_row, _ = self.get_cursor_position()
289
self._orig_top_usable_row = self.top_usable_row
0 commit comments