[En-Nut-Discussion] Telnet server with echo and cursor key support

Hugo Simon hugo.simon at gmx.de
Sun Jul 6 00:30:32 CEST 2003


I now found that the effect depends on the used telnet client. If I use
Microsofts Telnet all works fine. But with Putty the described effect
occures.

bye
Thorsten

----- Original Message -----
From: Hugo Simon <hugo.simon at gmx.de>
To: <en-nut-discussion at egnite.de>
Sent: Saturday, July 05, 2003 3:47 PM
Subject: Re: [En-Nut-Discussion] Telnet server with echo and cursor key
support


> Hi.
>
> Now I have built a simple read line function that reads a line of
characters
> from a stream, supporting the BS key and an echo. It works fine on
> stdin/stdout routed to the uart0 device. But with a TCP Telnet socket
> connected to a stream there came some unreadable characters on connection
> and on pressing return. I don't know why. Maybe someone have a look at the
> code and give me some hint.
>
> Thank you
> Thorsten
>
> /*
>  * read a line from a stream with echo and BS support
>  */
> void readln(char *line, u_char len, FILE *stream)
> {





More information about the En-Nut-Discussion mailing list