0

The title of the post is self-splicative.
I wanna know how can I take the linux terminal cursor position.

Currently I'm setting the position like this:

print('\033[10;10f')

That method is not good, because depends of Shell Script.
So I need to know who to set and get, cursor position.

Panda Soli
  • 61
  • 6
  • Have you looked at the Python curses module which provides an interface to the `ncurses` library, the de-facto standard for portable advanced terminal handling on Unix and Unix-like OSes? – fpmurphy Jul 28 '22 at 18:21
  • @fpmurphy Yeah, I looked, but `ncurses` clears the console buffer, and i don't wanna it – Panda Soli Jul 28 '22 at 18:47
  • See this answer: https://stackoverflow.com/a/34746712/14772619 – dimich Jul 28 '22 at 21:59
  • After some more research I found the correct answer is [here](https://stackoverflow.com/a/46675451/15286947). – Panda Soli Feb 11 '23 at 21:26

0 Answers0