Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: no echo? Message-ID: <7146@brl-smoke.ARPA> Date: 21 Jan 88 15:31:38 GMT References: <128@dcrbg1.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 15 In article <128@dcrbg1.UUCP> bcf2303@dcrbg1.UUCP (Wing Chow) writes: > can you tell me how to avoid 'echoing' back to the user what he/she >is typing in? The details of how to do this depend on the specific operating system environment. On UNIX, the simplest thing is system("stty -echo"); to disable echoing and system("stty echo"); to reenable it (important!). For more direct control, you would have to use an appropriate ioctl() call; see TTY(4) or TERMIO(7) in your UNIX Programmer's Reference Manual (or Administrator Reference Manual) for details of terminal-related ioctls. The proposed IEEE Std 1003 specifies some library functions to be used instead of ioctl() calls, but they are probably not yet in your C library.