From: Bill Kelly Date: 2006-08-03T12:35:25+09:00 Subject: Re: Telnet Server in Ruby From: "Francis Cianfrocca" > > Can you give me a hello-world program that runs your code as a telnet > server, that can (for example) serve a remote login? I started figuring > it out from your test cases, but I figure you can rattle it off the top > of your head. I've added a windowed-term-example.rb to the project: http://rubyforge.org/cgi-bin/viewvc.cgi/dorkbuster/dbcore/windowed-term-example.rb?root=dorkbuster&view=co It accepts clients, and partitions the client's window into three regions. Lines of text can be entered into the bottom region, with line editing and command history, and the data entered is echoed to all clients in the middle region. PgUp/PgDn should scroll through that data in the middle region as it accumulates. The top region gets a timestamp printed to it every second or so. NOTE: You'll need to put your telnet into character mode (mode ch) before connecting. I know there must be a telnet escape sequence I could send from the server to do that automatically, but, I didn't know what it was. Hope this helps, Bill