How to set mouse cursor position in C on linux?

后端 未结 6 1053
礼貌的吻别
礼貌的吻别 2020-12-14 07:52

how can I set the mouse cursor position in an X window using a C program under Linux? thanks :) (like setcursorpos() in WIN)

EDIT: I\'ve tried this

6条回答
  •  攒了一身酷
    2020-12-14 08:54

    All modern terminals should support ANSI escape sequences. For anything more complicated (and more portable), however, you should look into using a library such as ncurses.

提交回复
热议问题