diff options
author | jkh <jkh@FreeBSD.org> | 1995-05-28 03:05:06 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-05-28 03:05:06 +0000 |
commit | f6adc3d0cb0c4fabebcca758ff1974167658353e (patch) | |
tree | 11cb8db7e042dea4f3131229406e5cf69f646241 /release/sysinstall/tcpip.c | |
parent | f95342e1c873302bd88bff8b1183ce16998990e5 (diff) | |
download | FreeBSD-src-f6adc3d0cb0c4fabebcca758ff1974167658353e.zip FreeBSD-src-f6adc3d0cb0c4fabebcca758ff1974167658353e.tar.gz |
Humanize Poul-Henning's code. Status values should be properly
respected now.
Diffstat (limited to 'release/sysinstall/tcpip.c')
-rw-r--r-- | release/sysinstall/tcpip.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/release/sysinstall/tcpip.c b/release/sysinstall/tcpip.c index 0d55801..3779ddc 100644 --- a/release/sysinstall/tcpip.c +++ b/release/sysinstall/tcpip.c @@ -1,5 +1,5 @@ /* - * $Id: tcpip.c,v 1.22 1995/05/27 23:39:34 phk Exp $ + * $Id: tcpip.c,v 1.23 1995/05/27 23:52:55 jkh Exp $ * * Copyright (c) 1995 * Gary J Palmer. All rights reserved. @@ -193,6 +193,7 @@ tcpOpenDialog(Device *devp) int max; char *tmp; char help[FILENAME_MAX]; + char title[80]; /* We need a curses window */ ds_win = newwin(LINES, COLS, 0, 0); @@ -206,8 +207,8 @@ tcpOpenDialog(Device *devp) /* Setup a nice screen for us to splat stuff onto */ draw_box(ds_win, TCP_DIALOG_Y, TCP_DIALOG_X, TCP_DIALOG_HEIGHT, TCP_DIALOG_WIDTH, dialog_attr, border_attr); wattrset(ds_win, dialog_attr); - mvprintw(ds_win, TCP_DIALOG_Y, TCP_DIALOG_X + 20, " Interface %s ", devp->name); - + sprintf(title, " Interface %s ", devp->name); + mvwaddstr(ds_win, TCP_DIALOG_Y, TCP_DIALOG_X + 20, title); draw_box(ds_win, TCP_DIALOG_Y + 9, TCP_DIALOG_X + 8, TCP_DIALOG_HEIGHT - 13, TCP_DIALOG_WIDTH - 17, dialog_attr, border_attr); wattrset(ds_win, dialog_attr); |