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

Diff for /src/usr.bin/write/write.c between version 1.2 and 1.3

version 1.2, 1995/10/23 09:44:02 version 1.3, 1995/11/17 12:39:20
Line 304 
Line 304 
                 c = toascii(*s);                  c = toascii(*s);
                 if (c == '\n') {                  if (c == '\n') {
                         PUTC('\r');                          PUTC('\r');
                         PUTC('\n');  
                 } else if (!isprint(c) && !isspace(c) && c != '\007') {                  } else if (!isprint(c) && !isspace(c) && c != '\007') {
                         PUTC('^');                          if (c & 0x80) {
                         PUTC(c^0x40);   /* DEL to ?, others to alpha */                                  PUTC('M');
                 } else                                  PUTC('-');
                         PUTC(c);                                  c &= ~0x80;
                           } else {
                                   PUTC('^');
                                   c &= ~0x40;
                           }
                   }
                   PUTC(c);
         }          }
         return;          return;
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3