import java.io.*;

public class TelnetTest extends TelnetTTY {
    public TelnetTest(String host) throws IOException {
	super(host);
    }
    public synchronized void processChar(int c) {
	char cu=Character.toUpperCase((char)c);
	System.out.print(cu);
    }
    public static void main(String args[]) throws Exception {
	int c;
	TelnetTest tty=new TelnetTest(args[0]);
	while ((c=System.in.read())!=-1) {
	    if (tty.getErrorFlag()) break;
	    tty.send(c);
	}
    }
}
