Nuno Carvalho wrote:

>   I'm trying to know more about sending "commands" to a remote machine
>  using socket programming.
>  
>   Example:
>  
>    non_echo[0] = 255;
>    non_echo[1] = 251;
>    non_echo[2] = 1  ;
>    write(sockfd, non_echo,3);
>  
>   This seems that remote user will type something without echoing to his
>  terminal(usefull, for example, on typing passwords ...).

This is part of the Telnet protocol.

>   Is there any "table" where i could get more "functions" about it ?

The Telnet protocol is documented in RFC 854.

>   For example, how to send caracters with diferent colors using socket
>  programming.

The escape sequences used to specify colours are specific to the type
of terminal being used. You need to consult the terminfo entry
corresponding to the value of the TERM environment variable in order
to determine whether the terminal supports colour, and which sequences
it uses. See the terminfo(5) manpage for details. The simplest
approach is to use the ncurses library to handle the details.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to