If running under a typical sysv-style curses, including ncurses, use

hline() to draw the window split rather than fudging it with dashes.
This causes the line to be drawn in line-draw characters if the terminal
description has them.

Suggested by: ache
This commit is contained in:
Peter Wemm 1996-08-20 00:31:37 +00:00
parent 90fd53ca36
commit ec52662281
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17698

View File

@ -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";