summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk/io.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-08-19 19:42:00 +0000
committerpeter <peter@FreeBSD.org>1996-08-19 19:42:00 +0000
commitc663bae3b71b62dea313426b5c2729c15e305f38 (patch)
tree897e8fc17dd2ef81d46fc360d75d518c6b770ee6 /usr.bin/talk/io.c
parent52457c88af4b55e2d3987cc4fbb0fdf89b1d080d (diff)
downloadFreeBSD-src-c663bae3b71b62dea313426b5c2729c15e305f38.zip
FreeBSD-src-c663bae3b71b62dea313426b5c2729c15e305f38.tar.gz
Update some ancient warts in talk:
- use termios, not sgtty - dont use _putchar(), that was a BSD-curses specific feature not in other curses packages (such as ncurses) - use sigaction, not sigvec while I'm there - box() does different things under sysv/ncurses on 1-line high windows, and BSD-curses doesn't have hline(), so do it by adding characters instead. That works on both styles of curses.
Diffstat (limited to 'usr.bin/talk/io.c')
-rw-r--r--usr.bin/talk/io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/talk/io.c b/usr.bin/talk/io.c
index f608654..7b8ead8 100644
--- a/usr.bin/talk/io.c
+++ b/usr.bin/talk/io.c
@@ -61,7 +61,9 @@ talk()
char buf[BUFSIZ];
struct timeval wait;
- message("Connection established\007\007\007");
+ message("Connection established");
+ write(STDOUT_FILENO, "\007\007\007", 3);
+
current_line = 0;
/*
OpenPOWER on IntegriCloud