]> diplodocus.org Git - nmh/blob - docs/historical/mh-jun-1982/Extras/libh/echo.c
Updated documentation and comments about sendmail/pipe.
[nmh] / docs / historical / mh-jun-1982 / Extras / libh / echo.c
1 #ifdef COMMENT
2 Proprietary Rand Corporation, 1981.
3 Further distribution of this software
4 subject to the terms of the Rand
5 license agreement.
6 #endif
7
8 #define ECHO 010
9 /* set, clear echo on file handle # 2 */
10
11 int tt_mode[3];
12 noecho()
13 {
14 gtty(2,tt_mode);
15 tt_mode[2] =& ~ECHO;
16 return(stty(2,tt_mode));
17 }
18
19 doecho()
20 {
21 gtty(2,tt_mode);
22 tt_mode[2] =| ECHO;
23 return(stty(2,tt_mo