code: function(cursor) {
      this._caretChange = Caret.NO_CHANGE;
      this._processCaretChange({
        typed: this.terminal.inputElement.value,
        cursor: cursor
      });
    }
docs: Counterpart to |setInput| for moving the cursor.
  @param cursor A JS object shaped like { start: x, end: y }