1 /*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)ttydefaults.c 8.1 (Berkeley) 06/04/93"; 10 #endif /* not lint */ 11 12 #include <sys/termios.h> 13 14 #include "extern.h" 15 16 void 17 set_ttydefaults(fd) 18 int fd; 19 { 20 struct termios term; 21 22 tcgetattr(fd, &term); 23 term.c_iflag = TTYDEF_IFLAG; 24 term.c_oflag = TTYDEF_OFLAG; 25 term.c_lflag = TTYDEF_LFLAG; 26 term.c_cflag = TTYDEF_CFLAG; 27 tcsetattr(fd, TCSAFLUSH, &term); 28 } 29