diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-18 04:02:27 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-18 04:02:27 +0000 |
commit | 0fdee9fc4c513111890cb276e3050734c0e8b8c9 (patch) | |
tree | 5cab468ea847a2637773683e95a786710b7383b8 /usr.bin/talk/io.c | |
parent | 8a60a215e4534c61e81ad6fe5e0b4833e1664a95 (diff) |
Some changes inspired by FreeBSD...
o Kill annoying spaces at the end of lines
o sigaction, not sigvec
o warn/err where sensible
o hstrerror() not herror()
o defaults for erase, kill, and werase if not set
o kill a needless refresh() after the beeps that was messing up the screen
Diffstat (limited to 'usr.bin/talk/io.c')
-rw-r--r-- | usr.bin/talk/io.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/talk/io.c b/usr.bin/talk/io.c index fd5aa8a80eb..752eb103a88 100644 --- a/usr.bin/talk/io.c +++ b/usr.bin/talk/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.6 1998/08/18 02:54:23 millert Exp $ */ +/* $OpenBSD: io.c,v 1.7 1998/08/18 04:02:16 millert Exp $ */ /* $NetBSD: io.c,v 1.4 1994/12/09 02:14:20 jtc Exp $ */ /* @@ -38,11 +38,11 @@ #if 0 static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: io.c,v 1.6 1998/08/18 02:54:23 millert Exp $"; +static char rcsid[] = "$OpenBSD: io.c,v 1.7 1998/08/18 04:02:16 millert Exp $"; #endif /* not lint */ /* - * This file contains the I/O handling and the exchange of + * This file contains the I/O handling and the exchange of * edit characters. This connection itself is established in * ctl.c */ @@ -67,7 +67,7 @@ talk() char buf[BUFSIZ]; struct timeval wait; -#ifdef NCURSES_VERSION +#if defined(NCURSES_VERSION) || defined(beep) message("Connection established"); /* * beep() doesn't flush output on its own. @@ -75,14 +75,13 @@ talk() beep(); beep(); beep(); - refresh(); #else message("Connection established\007\007\007"); #endif current_line = 0; /* - * Wait on both the other process (sockt_mask) and + * Wait on both the other process (sockt_mask) and * standard input ( STDIN_MASK ) */ FD_ZERO(&read_template); @@ -130,7 +129,7 @@ talk() * on the screen and then exits. (i.e. a curses version of perror) */ void -p_error(string) +p_error(string) char *string; { wmove(my_win.x_win, current_line%my_win.x_nlines, 0); |