fix overflow when using high resolutions
add text display of cursor pos