choosable cursor position, from a nice conversation on irc.nixers.net