public void delete() {
    if (inputString.length() == 0 || cursorPosition > inputString.length() - 1) {
      return;
    }

    inputString.deleteCharAt(cursorPosition);
    inputModeScreenView.showInput(message, inputString.toString(), cursorPosition);
    inputModeScreenView.refreshTerminal();
  }
The presentation logic for the input mode.
hbase-hbtop/src/main/java/org/apache/hadoop/hbase/hbtop/screen/top/InputModeScreenPresenter.java