LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disabling echo on the terminal! (https://www.linuxquestions.org/questions/linux-newbie-8/disabling-echo-on-the-terminal-622480/)

bhanu001 02-20-2008 07:27 AM

Disabling echo on the terminal!
 
echo -n Enter your password
stty -echo
read password
stty echo

This shell scripts asks for the password.
When the user types it, it will not be echoed on the screen. How to implement the same using C Language Library Functions.

Vookimedlo 02-20-2008 07:38 AM

See man page for termios http://linux.die.net/man/3/termios

If ECHO is set input characters are echoed back to the terminal. If ECHO is not set, input characters are not echoed.

bhanu001 02-21-2008 09:15 PM

Thankyou very much for your valuable reply.
C.Bhanu Kiran


All times are GMT -5. The time now is 09:40 AM.