Re: prompt_hook
[email protected] (Christopher A. Craig)
| Newsgroups | gmane.comp.games.mud.client.lyntin |
|---|---|
| Organization | Georgia Institute of Technology |
| Message-ID | <[email protected]> |
will guaraldi <[email protected]> writes: > 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. > > 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. tinyui can put the prompt in the input region, but I'm sure I could write something to pull prompts out at a higher level by checking for the presence of a newline (or better yet a IAC+GA or IAC+TELOPT_EOR if the server is well behaved) and spamming the prompt hook manually. -- Christopher A. Craig <[email protected]> "The world would be a better place if Larry Wall had been born in Iceland, or any other country where the native language actually has syntax." -- Peter da Silva (in alt.sysadmin.recovery) ------------------------------------------------------- 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