home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
minnie.tuhs.org
/
unixen.tar
/
unixen
/
PDP-11
/
Distributions
/
ucb
/
spencer_2bsd.tar.gz
/
2bsd.tar
/
upgrade
/
src
/
reset.c
< prev
next >
Wrap
C/C++ Source or Header
|
1980-02-17
|
328b
|
22 lines
/*
* reset - set the teletype mode bits to be sensible, erase to ^H, kill to @
*
* Kurt Shoens
*
* Very useful after crapping out in raw.
*/
main()
{
struct tty {
char ispeed,ospeed;
char erase,kill;
int trash;
} tet;
gtty(2,&tet);
tet.erase = 010;
tet.kill = '@';
tet.trash = 0332;
stty(2,&tet);
exit(0);
}