kuizeo
kuizeo

Reputation: 44

Is there a function in the POSIX APIs for tracking the mouse position in the console?

Do the POSIX APIs provide a function to track where the mouse is in relation to the console? (For example, in Vim and derivatives, clicking and dragging selects that text in Visual mode.)

Upvotes: 0

Views: 89

Answers (1)

Shawn
Shawn

Reputation: 52549

The POSIX API has no mouse-related functions or options. Console programs that interact with mice have to do so via OS-specific methods or non-POSIX libraries.

Upvotes: 3

Related Questions