@Override
      public void setTtyResizeHandler(@Nullable TtyResizeHandler ttyResizeHandler) {
        if (terminalHandler instanceof TerminalHandlerBase && ttyResizeHandler != null) {
          ((TerminalHandlerBase)terminalHandler).setResizeHandler(ttyResizeHandler);
        }
      }
@Override
      public void setTtyResizeHandler(@Nullable TtyResizeHandler ttyResizeHandler)