mousePos ?(-s|-p|-w)?
Return the mouse position as a list of two coordinates. Depending on the specified option, the position is returned in different coordinate systems:
-sscreen coordinates
-pcurrent pane coordinates
-wwindow coordinates
Option -s is the default. Options -p and -w will raise an error if no window is open.