On Jul 25, 2007, at 4:35 PM, Ari Brown wrote:

> So my telnet server accepts  
> connections.                                             That works.
> It displays the  
> prompt.                                                                
>                 That works.
> It accepts the single characters (IO.getc) without pressing  
> return.   That works.
> But wait! Whenever I connect to the server (telnet localhost),  
> there is always this string of characters that are:
>
> ??%??&??&??^C?????? ??!??"??'????

Those are telnet codes you will need to recognize and remove.  Your  
client sends those to determine the features of the server.  I  
discuss this a little and give code for it in this old quiz summary:

   http://rubyquiz.com/quiz32.html

James Edward Gray II