Goldsmith, David wrote: > > Thanks for the prompt reply, and forgive my ignorance: how do I > specify in a telnet transmission that 27 is to be interpreted as an > ascii code? Thanks! >
Well, this is not specific to Telnet -- it's a Python thing. Telnet just sucks up whatever bytes you send it, so you just need to create a Python string with that character. You can do: telnetlib.Telnet.write( chr(27) ) or telnetlib.Telnet.write( "\x1b" ) (1B being the hexadecimal value of 27 in decimal) -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32