Passing x y cursor position to nodejs when key gets pressed and action should occur

ONGOING set cursor position correctly when action gets returned from nodeJS