Cursor Global Position

Hello all,

How can i get the global position of the cursor?
(i'm using c language, and suse 10.1 linux)

Thanks.

use:
ncurses library for xterm
ANSI escape sequences to set and get (depending on the tty) cursor position

Thanks for your replay,

but i need to get the global position, i mean for all the screen.

i'm using framebuffer to draw something on the screen(desktop), and i want to get the position of the cursor.

How can i do that?

Thanks.

any help? any idea?