Re: [Tutor] Telnet and special characters

2007-02-28 Thread David Perlman
This question isn't well posed. There is no such thing as an F1 "character". Data is sent over telnet connections as 8-bit bytes. You can send any combination of 8-bit bytes you want by coding them in a number of different ways, such as chr(xx) like you wrote below, or '\xnn' or whatever

Re: [Tutor] Telnet and special characters

2007-02-28 Thread Johan Geldenhuys
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luke Paireepinart Sent: 27 February 2007 09:57 PM To: Chris Hallman Cc: tutor@python.org Subject: Re: [Tutor] Telnet and special characters Chris Hallman wrote: > > Is it possible to send a F1 "character" over a telnet connect

Re: [Tutor] Telnet and special characters

2007-02-27 Thread Luke Paireepinart
Chris Hallman wrote: > > Is it possible to send a F1 "character" over a telnet connection? I've > searched but I can't find a solution. I've tried SendKeys > and other methods, but I > can't get it to work. > > import telnetlib > > pswd = "***" > host

[Tutor] Telnet and special characters

2007-02-27 Thread Chris Hallman
Is it possible to send a F1 "character" over a telnet connection? I've searched but I can't find a solution. I've tried SendKeysand other methods, but I can't get it to work. import telnetlib pswd = "***" host = "***" tn = telnetlib.Telnet(host) tn.rea