146039Sbostic /*- 2*61431Sbostic * Copyright (c) 1990, 1993 3*61431Sbostic * The Regents of the University of California. All rights reserved. 446039Sbostic * 546039Sbostic * %sccs.include.redist.c% 646039Sbostic */ 746039Sbostic 846039Sbostic #ifndef lint 9*61431Sbostic static char sccsid[] = "@(#)ttydefaults.c 8.1 (Berkeley) 06/04/93"; 1046039Sbostic #endif /* not lint */ 1146039Sbostic 1246039Sbostic #include <sys/termios.h> 1346039Sbostic 1460091Sbostic #include "extern.h" 1560091Sbostic 1660091Sbostic void set_ttydefaults(fd)1746039Sbosticset_ttydefaults(fd) 1846039Sbostic int fd; 1946039Sbostic { 2046039Sbostic struct termios term; 2146039Sbostic 2246039Sbostic tcgetattr(fd, &term); 2346039Sbostic term.c_iflag = TTYDEF_IFLAG; 2446039Sbostic term.c_oflag = TTYDEF_OFLAG; 2546039Sbostic term.c_lflag = TTYDEF_LFLAG; 2646039Sbostic term.c_cflag = TTYDEF_CFLAG; 2746039Sbostic tcsetattr(fd, TCSAFLUSH, &term); 2846039Sbostic } 29