private char getEnterKeyCode() {
    if (myProcessHandler instanceof BaseProcessHandler<?>) {
      PtyProcess process = ObjectUtils.tryCast(((BaseProcessHandler<?>)myProcessHandler).getProcess(), PtyProcess.class);
      if (process != null) {
        return (char)process.getEnterKeyCode();
      }
    }
    return LF;
  }
private char getEnterKeyCode()