[BACK]Return to ttyio.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/ttyio.c between version 1.11 and 1.12

version 1.11, 2000/04/13 06:12:18 version 1.12, 2000/07/25 19:52:50
Line 37 
Line 37 
 ttopen()  ttopen()
 {  {
   
           if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO))
                   panic("standard input and output must be a terminal");
   
         if (ttraw() == FALSE)          if (ttraw() == FALSE)
                 panic("aborting due to terminal initialize failure");                  panic("aborting due to terminal initialize failure");
 }  }
Line 205 
Line 208 
         (void) fputs("panic: ", stderr);          (void) fputs("panic: ", stderr);
         (void) fputs(s, stderr);          (void) fputs(s, stderr);
         (void) fputc('\n', stderr);          (void) fputc('\n', stderr);
         abort();                /* To leave a core image. */          exit(1);
 }  }
   
 #ifndef NO_DPROMPT  #ifndef NO_DPROMPT

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12