telnetlib
Timothy Grant
tjg at exceptionalminds.com
Mon Jul 31 12:13:54 EDT 2000
On Mon, Jul 31, 2000 at 03:17:10PM +0000, Guido van Rossum wrote:
> Timothy Grant <tjg at exceptionalminds.com> writes:
>
> > Everything works great until I enter the Terminal type. It appears that the
> > telnet session stops receiving at that point. As you can see from the
> > Traceback I receive the echo of from my write, but then don't receive the
> > next prompt.
> >
> > I'm guessing it has something to do with either changing the terminal type
> > on telnetlib, or a timing issue, but I'm stumped at the moment.
>
> Could you post a transcript of what the session looks like when you do
> it manually???
>
> A random "poke-and-hope" suggestion: perhaps you could use \r instead
> of \n in input???
OK, now I'm cautiously optimistic. Things look like they are working
correctly, though I still have a ways to go before I am convinced of the
fact.
This causes me to have a question. As I have been working through
this problem I used a debug level of 255 and interact() to see what was
going on. Using interact, the Enter key on my computer sends a \012. Using
\n sends the same thing. interact() would die in the same spot as my script
did, so is there something weird going on with this particular terminal?
--
Stand Fast,
tjg.
Timothy Grant tjg at exceptionalminds.com
Chief Technology Officer www.exceptionalminds.com
Red Hat Certified Engineer (503) 246-3630
Avalon Technology Group, Inc. fax (503) 246-3124
>>>>>>>>>>>>Linux...Because crashing isn't normal<<<<<<<<<<<<<
More information about the Python-list
mailing list