Moved cursor.go to use local functions rather than rlw.func()