From e665fee23a1e8faaacaceda94ce45295956dee10 Mon Sep 17 00:00:00 2001 From: jkh Date: Tue, 23 Apr 1996 01:29:35 +0000 Subject: 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! --- release/sysinstall/tcpip.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'release/sysinstall/tcpip.c') 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; } -- cgit v1.1