summaryrefslogtreecommitdiff
path: root/usr.bin/talk
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-06-10 21:41:27 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-06-10 21:41:27 +0000
commit53c5905b071647ba7a61fb1493f9458f0cc258d9 (patch)
tree591850e1c321d5a60562a8e4a85a15cc12da23b0 /usr.bin/talk
parent17b34a0b85355a48dfd8fe91d8fa349f23b8143b (diff)
Use beep() with ncurses
Use hline() with ncurses
Diffstat (limited to 'usr.bin/talk')
-rw-r--r--usr.bin/talk/init_disp.c4
-rw-r--r--usr.bin/talk/io.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/usr.bin/talk/init_disp.c b/usr.bin/talk/init_disp.c
index d6d2a6e4762..bd2f12173da 100644
--- a/usr.bin/talk/init_disp.c
+++ b/usr.bin/talk/init_disp.c
@@ -89,7 +89,11 @@ init_display()
wclear(his_win.x_win);
line_win = newwin(1, COLS, my_win.x_nlines, 0);
+#ifdef NCURSES_VERSION
+ whline(line_win, '-', COLS);
+#else
box(line_win, '-', '-');
+#endif
wrefresh(line_win);
/* let them know we are working on it */
current_state = "No connection yet";
diff --git a/usr.bin/talk/io.c b/usr.bin/talk/io.c
index da7c100b543..6e6f1b62f5e 100644
--- a/usr.bin/talk/io.c
+++ b/usr.bin/talk/io.c
@@ -67,7 +67,14 @@ talk()
char buf[BUFSIZ];
struct timeval wait;
+#ifdef NCURSES_VERSION
+ message("Connection established");
+ beep();
+ beep();
+ beep();
+#else
message("Connection established\007\007\007");
+#endif
current_line = 0;
sockt_mask = (1<<sockt);