获取终端光标位置

6 c ncurses

我需要获取终端光标位置然后设置它,我已经知道如何使用"移动"设置它,这是在ncurses,任何想法?

thk*_*ala 6

你试过getyx()吗?

或者,如果您更喜欢传统的curses函数,那么getcurx()和getcury()