Mailinglist Archive: opensuse-programming (58 mails)
| < Previous | Next > |
echoing on a socket
- From: alan@xxxxxxxxxxx
- Date: Sat, 20 Dec 2003 18:43:08 -0000
- Message-id: <3FE4983C.19357.7F582AE@localhost>
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 > |