Skip to content

Commit 5821233

Browse files
committed
Use blessed to get the cursor position
1 parent 5c0f7ba commit 5821233

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

curtsies/window.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ def get_cursor_position(self) -> Tuple[int, int]:
310310
"""Returns the terminal (row, column) of the cursor
311311
312312
0-indexed, like blessed cursor positions"""
313+
314+
if self._use_blessed:
315+
return self.t.get_location()
316+
313317
# TODO would this be cleaner as a parameter?
314318
in_stream = self.in_stream
315319

0 commit comments

Comments
 (0)