suggested change to 'write'

From: How Can ThisBe <howcanthisbe300_at_hotmail.com>
Date: Thu, 24 Apr 2003 19:54:16 +0000
A friend and I have been using 'write' to communticate to each other,
its very handy but has a small annoyance (to us anyway) where you can
lose track for the thread when you look back over it. Anyway, below
is a tiny patch that helps to see who wrote what. We have found it
very helpful.


*** write.c.orig        Thu Apr 24 21:29:02 2003
--- write.c     Thu Apr 24 21:40:08 2003
***************
*** 280,287 ****
        (void)printf("\r\n\007\007\007Message from %s_at_%s on %s at %s 
...\r\n",
            login, host, mytty, nows + 11);

!       while (fgets(line, sizeof(line), stdin) != NULL)
                wr_fputs(line);
  }

  /*
--- 280,289 ----
        (void)printf("\r\n\007\007\007Message from %s_at_%s on %s at %s 
...\r\n",
            login, host, mytty, nows + 11);

!       while (fgets(line, sizeof(line), stdin) != NULL){
!               (void)printf("\n%s: ",login);
                wr_fputs(line);
+       }
  }

  /*



_________________________________________________________________
Received on Thu Apr 24 2003 - 10:54:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:04 UTC