Lucas King wrote: > so the question is, how does one handle the control codes that are being > generated locally. maybe there is some way of passing the terminal > type, or other information that is required by Telnet, to the Telnet > session on the command line. > > if anyone has any thoughts they would like to share i would/will be > grateful.
Each time you receive an input character from the telnet session, run it through an FSM (google for "finite state machine") to decide what state your program should take next. FSM's make this kind of stuff child's play. cheers rickw -- _________________________________ Rick Welykochy || Praxis Services linux: because a PC is a terrible thing to waste ([EMAIL PROTECTED] put this on Tshirts in '93) -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
