Nuno Carvalho wrote:

>    - check, using socket programming, if the remote machine support vt100!
>      I'm trying on using escape codes sending a string ("\e[c") to the
> remote machine. Unfortunally it writes the result to the remote machine.
> Is there any way for I get the result !?

The telnet protocol includes a mechanism for sending environment
variables to the server. Telnet programs invariably send a suitable
value for the TERM environment variable to the server. You can use the
value of this variable to obtain the appropriate data from the
terminfo database.

You should never hardcode particular escape sequences into a program. 
You should always use the terminfo database (or termcap if terminfo
isn't available) to obtain the correct sequences.

>    - how can I do for not echo charaters to the remote machine(probabily
> using vt100 escape codes) !?

You can't do it using escape sequences. For the telnet protocol (which
appears to be what you're using), you need to use the ECHO option to
control echoing.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to