Re: prompt_hook

will guaraldi <[email protected]>
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
I have some of the TERMTYPE handling in.  It's the IAC SB ... SE
stuff--I'm not sure how that gets handled by the telnetlib.  The docs on
the python.org site seem to indicate that it will get passed into the
negotiate function, but I'm not really following how, yet.

I haven't really spent much time on it yet, either.

[Suddenly it occurs to me that MCCP uses IAC SB ... SE stuff...  so it's
probably in the code already.  ...  A quick check and voilla!  It is!]

Give me another day or two to find time to finish implementing TERMTYPE
and some of the other things I had in the old net module.

I was talking to the folks at cryosphere.  If you log into their mud and
then type ...  mmm...  I forget the command.  Anyhow, their mud is _ULTRA_
anal about proper terminal emulation etiquette to the point where Abigail
wrote up a big table of all the mud clients and all their failings:

   http://cryosphere.net/telnet

Anyhow, there's a command on their mud that goes through and tests all
kinds of stuff.  I think they use IAC+GA or EOR.  I forget pretty much all
of the specificas--I did that work a year or two ago and I don't seem to
have written it down anywhere.  (This would be good specification material
for the wiki.)

I've never implemented any AYT code.

Prompt detection in Lyntin is dicey (as I recall).  I'd really love to get
something that works on all muds once it's been configured.  And then
having that prompt set in the ini file--that'd be fantastic.

/will


On Tue, 20 Apr 2004, Brazen wrote:
>
> 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
> _______________________________________________
> Lyntin-devl mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lyntin-devl
>

-- 
whatever it is, you can find it at http://www.bluesock.org/~willg/
except Will--you can only see him in real life.


-------------------------------------------------------
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_id70&alloc_id638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.