[Tutor] Another prob with Telnet

Alan Gauld alan.gauld at blueyonder.co.uk
Sat Aug 14 19:42:43 CEST 2004


> I looked up the web-site but couldn't understand anything :
> "LF  12  10   a  ^J Line Feed"

LF = nmonic abbreviation

12 = octal value

10 = decimal value

a  = hex value

So to send the LF ASCII character we would semd any of:

012

10

0xa

> What should I type in my programme script to make it work?

And to insert that into a string use chr() like

print "This string ends with a line feed" + chr(10)

HTH,

Alan G
Author of the Learn to Program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld/tutor2/


More information about the Tutor mailing list