[Tutor] Another prob with Telnet

Alan Gauld alan.gauld at blueyonder.co.uk
Fri Aug 13 23:08:16 CEST 2004


> > I write a programme which connects to FICS via telnet but this
site has
> > an interesting property...instead of pressing enter one should
press
> > "ctrl+j" to enter commands etc. Any ideas to make this work in
python?
>
> But Control-j is the newline character; are you sure that pressing
enter
> doesn't do the trick?

Ctrl-j is the line feed character. Ctrl-M is the Enter character
Which, depending on OS can be interpreted as a linefeed, a
carriage return or a combination of both.

>     http://www.robelle.com/library/smugbook/ascii.txt
>
> contains a table that shows a map between the "control" keys and
what they
> really stand for.

Going back to my old teletype days when we didn't have no steenkin'
Enter keys... :-)

Alan G.



More information about the Tutor mailing list