public static boolean demoSkipToCommand(InputStream stream) {
    { char ch = Stella.NULL_CHARACTER;
      boolean eofP = false;
      boolean echoP = false;
      OutputStream echostream = stream.echoStream;

      loop000 : for (;;) {
        stream.echoStream = null;
        { Object [] caller_MV_returnarray = new Object[1];

          ch = InputStream.readCharacter(stream, caller_MV_returnarray);
          eofP = ((boolean)(((BooleanWrapper)(caller_MV_returnarray[0])).wrapperValue));
        }
        if (eofP) {
          return (true);
        }
        if (echoP) {
          stream.echoStream = echostream;
        }
        if (Stella.$CHARACTER_TYPE_TABLE$[(int) ch] == Logic.KWD_WHITE_SPACE) {
          if (echoP) {
            echostream.nativeStream.print(ch);
          }
        }
        else if (ch == ';') {
          echoP = true;
          stream.echoStream = echostream;
          echostream.nativeStream.print(ch);
          eofP = InputStream.nativeReadLine(stream) == null;
          if (eofP) {
            return (true);
          }
        }
        else {
          stream.echoStream = echostream;
          Stella.unreadCharacter(ch, stream);
          break loop000;
        }
      }
      return (false);
    }
  }