Mailinglist Archive: opensuse-programming (58 mails)

< Previous Next >
echoing on a socket

Hi,

I need to turn off the echo on a socket while I get a password.

I tried:

struct termios termios_p;
tcgetattr(sd,&termios_p);
termios_p.c_lflag &= ~ECHO;
tcsetattr(sd,TCSANOW,&termios_p);

where sd is the socket descriptor.

It didn't seem to make any difference. Am I doing something wrong, or
is this not the way it is done these days?

Can any one assist, please?

Thanks

alan
--
http://www.ibgames.net/alan
Registered Linux user #6822 http://counter.li.org
Winding Down - Weekly Tech Newsletter - subscribe at
http://www.ibgames.net/alan/winding/mailing.html


< Previous Next >
This Thread
Follow Ups