diff options
author | jkh <jkh@FreeBSD.org> | 1996-04-23 01:29:35 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-04-23 01:29:35 +0000 |
commit | e665fee23a1e8faaacaceda94ce45295956dee10 (patch) | |
tree | 61dd517d68f78c02b32b70a1ec457f1509801e87 /release/sysinstall/tcpip.c | |
parent | 70a317a618a87b0eac973736356fadfa45b35959 (diff) | |
download | FreeBSD-src-e665fee23a1e8faaacaceda94ce45295956dee10.zip FreeBSD-src-e665fee23a1e8faaacaceda94ce45295956dee10.tar.gz |
Bring this into sync.
I still have a _very very annoying_ display bug which occurs when a menu
item causes a submenu to be displayed - the screen repaints for the original
menu (which is restored upon return from the submenu) are off by about 4
characters. I've tried restoring the screen, the cursor position, you name
it - same deal. Grrrr! This commit is my first step in trying to get someone
else to help me look into this one since I'm just tearing my hair out at this
point!
Diffstat (limited to 'release/sysinstall/tcpip.c')
-rw-r--r-- | release/sysinstall/tcpip.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/release/sysinstall/tcpip.c b/release/sysinstall/tcpip.c index 685ed56..fbde09a 100644 --- a/release/sysinstall/tcpip.c +++ b/release/sysinstall/tcpip.c @@ -1,5 +1,5 @@ /* - * $Id: tcpip.c,v 1.34 1996/04/07 03:52:36 jkh Exp $ + * $Id: tcpip.c,v 1.35 1996/04/13 13:32:12 jkh Exp $ * * Copyright (c) 1995 * Gary J Palmer. All rights reserved. @@ -225,7 +225,7 @@ tcpInstallDevice(char *str) int tcpOpenDialog(Device *devp) { - WINDOW *ds_win; + WINDOW *ds_win, *save; ComposeObj *obj = NULL; ComposeObj *first, *last; int n=0, quit=FALSE, cancel=FALSE, ret; @@ -234,6 +234,7 @@ tcpOpenDialog(Device *devp) char help[FILENAME_MAX]; char title[80]; + save = savescr(); /* We need a curses window */ ds_win = newwin(LINES, COLS, 0, 0); if (ds_win == 0) @@ -505,8 +506,10 @@ tcpOpenDialog(Device *devp) } if (ipaddr[0]) variable_set2(VAR_IPADDR, ipaddr); + restorescr(save); return DITEM_SUCCESS; } + restorescr(save); return DITEM_FAILURE; } |