docs: @Override
      public KeyStroke pollInput() {
          if(disposed) {
              return new KeyStroke(KeyType.EOF);
          }
          KeyStroke keyStroke = awtTerminal.pollInput();
          if(autoCloseTriggers.contains(TerminalEmulatorAutoCloseTrigger.CloseOnEscape) &&
                  keyStroke != null && 
                  keyStroke.getKeyType() == KeyType.Escape) {
              dispose();
          }
          return keyStroke;
      }