41,47d40
< #ifdef __linux__
< #include <bsd/sgtty.h>
< #include <termios.h>
< 
< struct termios oldsb, newsb;
< #endif
< 
59c52
< 	char buf[128];
---
> 	char buf[128]
190d182
< #ifndef __linux__
195,222d186
< #else
< 	/*
< 	** This works for heyu (NJC)
< 	*/
< 
< 	{
< 	  int s;
< 	  s = tcgetattr(n, &oldsb);
< 
< 	  if (s < 0) {
< 	    perror("ttopen tcgetattr");
< 	    exit(1);
< 	  }
< 
< 	  newsb = oldsb;
< 
< 	  newsb.c_iflag = IGNBRK | IGNPAR;
< 	  newsb.c_oflag = 0;
< 	  newsb.c_lflag = ISIG;
< 	  newsb.c_cflag = (CLOCAL | B4800 | CS8 | CREAD);
< 	  for (s = 0; s < NCC; s++)
< 	    newsb.c_cc[s] = 0;
< 	  newsb.c_cc[VMIN]   = 1;
< 	  newsb.c_cc[VTIME]  = 0;
< 
< 	  tcsetattr(n, TCSADRAIN, &newsb);
< 	}
< #endif
239,240d202
< 			        strcpy(buf,  "");	/* because these are used elsewhere clear them */
< 			        strcpy(rbuf, "");
