add cursor movement to terminal