Skip to content

Instantly share code, notes, and snippets.

@kbinani
Last active December 20, 2015 00:49
Show Gist options
  • Save kbinani/6044356 to your computer and use it in GitHub Desktop.
Save kbinani/6044356 to your computer and use it in GitHub Desktop.
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