I am currently coding a node.js program relating to mouse coordinates. Is there a way to see the mouse position in the terminal in Node.JS?
I've tried the ways beginning in \e
but they only list the cursor position. How do I get the mouse position in the terminal?
Is there a way to get said position in the "Row/Column" or "Column/Row" format? If there is no way, what about using child_process
?
I have solved my problem.
To get events, the bash escape load ESC[?100Xh
, replacing X with a number. The events will then be logged to the console.