code: private void updateState(CmsShellCommandResult result) {
  
          m_errorCode = result.getErrorCode();
          m_prompt = result.getPrompt();
          m_exitCalled = result.isExitCalled();
          m_hasError = result.hasError();
          m_echo = result.hasEcho();
      }
docs: Updates the internal client state based on the state received from the server.<p>
  
  @param result the result of the last shell command execution