Re: prompt_hook
Brazen <odbrazen-/[email protected]>
| Newsgroups | gmane.comp.games.mud.client.lyntin |
|---|---|
| Message-ID | <[email protected]> |
--- will guaraldi <[email protected]> wrote: > Here's why I'm asking: I just reimplemented the net module to use the > telnetlib (which is broken in regards to telnet options in previous > versions of Python [though I can't remember which ones--I think 2.2 but it > might have been 2.1--I keep meaning to look this up]) and in doing so > dumped all our prompt detection stuff. Do you have an example that uses GA/EOR? I'd be interested in checking it out but neither of the muds I play (3k&OD, both LPC) do much w/ telnet negotations. OD actually responds to AYT/AreYouThere by printing '[Yes]' 3k is silent. Both have a bug (LPC generic?) where they eat your next char of input after IAC+AYT. > I was originally thinking it'd be useful for things like mappers and > anything else that really needs to link user commands with mud responses. > Josh implemented his commandresponse module at a higher level and it seems > to work a lot better. I was never able to get my commandresponse module > (which worked with the prompt detection) to work. I have a spanky automapper around here, I'll try and get it cleaned up and checked in to the sandbox soon. Prompt detection is unreliable on many muds so it requires a followup command after you try and move like rating/area/where. This also gives a little info about the room you are in, so it isn't too painful. If the mud has an 'exits' that would be good too. > The other things I dumped were the net_read_filter and the > net_write_filter. I borrowed code from Leantin which implements MCCP in > like 20 lines directly in the network layer without those hooks (my hook > implementation was klugy at best). > > I need to figure out how the telnetlib handles IAC SB ... SE negotiation > things so that I can enable TERMTYPE. I also need to figure out how to > re-implement IAC GA and IAC EOR stuff (it might be implemented already--I > need to read through the telnetlib code). I'll checkin some updates to sandbox/leantin. I've been working from a local CVS repository, it looks like sourceforge has spread my SSH keys around so I'll move over to sandbox/leantin. The leantin net (sock.py) only handles ECHO and MCCP, but it should be easy to add other stuff using the read_negotiation/write_negotiation methods. If you let me know of some muds that use LINEMODE or TERMTYPE I'll try them out. > One possibility is that I could check it (and the related changes) in now. > It works well enough that I've been using it since Sunday without any > issues. Would anyone want me to check it in now? Otherwise I'm going to > sit on it for a smidge. > I'd like to check it out. You can email it or just check it in and not worry about people running CVS (are there many?). -Brazen __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click