summaryrefslogtreecommitdiff
path: root/usr.bin/talk
diff options
context:
space:
mode:
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);