Added method to get cursor position.

Signed-off-by: Basuke Suzuki <basuke@mac.com>