public ScreenView returnToNextScreen() {
    inputModeScreenView.hideCursor();
    String result = inputString.toString();

    return resultListener.apply(result);
  }
The presentation logic for the input mode.
hbase-hbtop/src/main/java/org/apache/hadoop/hbase/hbtop/screen/top/InputModeScreenPresenter.java