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