summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/talk')
-rw-r--r--usr.bin/talk/init_disp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/talk/init_disp.c b/usr.bin/talk/init_disp.c
index 14f0e02..48c2614 100644
--- a/usr.bin/talk/init_disp.c
+++ b/usr.bin/talk/init_disp.c
@@ -75,7 +75,6 @@ void
init_display()
{
struct sigaction sa;
- int i;
if (initscr() == NULL)
errx(1, "Terminal type unset or lacking necessary features.");
@@ -104,8 +103,11 @@ init_display()
wclear(his_win.x_win);
line_win = newwin(1, COLS, my_win.x_nlines, 0);
- for (i = 0; i < COLS; i++)
- mvwaddch(line_win, 0, i, '-');
+#if defined(hline) || defined(whline) || defined(NCURSES_VERSION)
+ whline(line_win, 0, COLS);
+#else
+ box(line_win, '-', '-');
+#endif
wrefresh(line_win);
/* let them know we are working on it */
current_state = "No connection yet";
OpenPOWER on IntegriCloud