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 >
C/C++ Source or Header  |  1980-02-17  |  328b  |  22 lines

  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. }
  22.