public void TelnetRead(StringBuffer buf, InputStream rawin, BufferedReader in[])
		throws InterruptedIOException, IOException
	{
		final char c=(char)in[0].read();
		if(mccppattern[patDex]==c)
		{
			patDex++;
			if((patDex>=mccppattern.length)&&(!neverSupportMCCP))
			{
				while(rawin.available()>0) rawin.read();
				final ZInputStream zIn=new ZInputStream(rawin);
				if(debugTelnetCodes) System.out.println("MCCP compression started");
				in[0]=new BufferedReader(new InputStreamReader(zIn));
				patDex=0;
			}
			return;
		}
		else
		if(patDex>0)
		{
			for(int i=0;i<patDex;i++)
				buf.append(mccppattern[i]);
			patDex=0;
		}
		buf.append(c);
		if(c==65535) throw new java.io.InterruptedIOException("ARGH!");
	}