Improved cursor behaviour (no drawing outside screen, reset flicker so that it's visible whenever its position changes).