Last active
December 20, 2015 00:49
-
-
Save kbinani/6044356 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_cursor_hotspot_x { ( | |
local FILE_PATH=$1 | |
od -N 2 -j 10 -t u "$FILE_PATH" | awk '{print $2}' | head -1 | |
) } | |
function get_cursor_hotspot_y { ( | |
local FILE_PATH=$1 | |
od -N 2 -j 12 -t u "$FILE_PATH" | awk '{print $2}' | head -1 | |
) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment