diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1996-08-20 00:31:37 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1996-08-20 00:31:37 +0000 |
| commit | ec52662281f1ba9f032384b230eab2c7431a0ce1 (patch) | |
| tree | 9e40f7f0efb4dc209221832f30b9a479a08e780a /usr.bin/talk | |
| parent | 90fd53ca366108ede88d89ed28c8108832d51d5e (diff) | |
Notes
Diffstat (limited to 'usr.bin/talk')
| -rw-r--r-- | usr.bin/talk/init_disp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/talk/init_disp.c b/usr.bin/talk/init_disp.c index 14f0e02d8d52..48c26140bf6f 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"; |
