From: ts Date: 2003-07-04T23:36:41+09:00 Subject: Re: Stuck with Telnet still >>>>> "K" == Kingsley Hendrickse writes: K> I am still stuck with this telnet client :( Try something like this svg% cat b.rb #!/usr/bin/ruby require 'socket' require 'thread' sock = TCPSocket.new('ancient.anguish.org',2222) $stdout.sync = true t1 = Thread.new do while line = gets sock.puts line break if /^quit/ =~ line end end t2 = Thread.new do loop do ch = sock.recv(1) putc ch end end t1.join svg% Guy Decoux