Commit | Line | Data |
---|---|---|
69739ccc BJ |
1 | /* |
2 | * reset - set the teletype mode bits to be sensible, erase to ^H, kill to @ | |
3 | * | |
4 | * Kurt Shoens | |
5 | * | |
6 | * Very useful after crapping out in raw. | |
7 | */ | |
8 | main() | |
9 | { | |
10 | struct tty { | |
11 | char ispeed,ospeed; | |
12 | char erase,kill; | |
13 | int trash; | |
14 | } tet; | |
15 | gtty(2,&tet); | |
16 | tet.erase = 010; | |
17 | tet.kill = '@'; | |
18 | tet.trash = 0332; | |
19 | stty(2,&tet); | |
20 | exit(0); | |
21 | } |