clear the screen at the correct time to avoid leaving garbage on the screen.

This happens when switching from address to :numbers display.

From FreeBSD pr bin/1425.
This commit is contained in:
explorer 1996-08-11 04:19:16 +00:00
parent 1350e82a8f
commit 661c82521c
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: netstat.c,v 1.3 1995/06/18 23:53:07 cgd Exp $ */ /* $NetBSD: netstat.c,v 1.4 1996/08/11 04:19:16 explorer Exp $ */
/*- /*-
* Copyright (c) 1980, 1992, 1993 * Copyright (c) 1980, 1992, 1993
@ -37,7 +37,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)netstat.c 8.1 (Berkeley) 6/6/93"; static char sccsid[] = "@(#)netstat.c 8.1 (Berkeley) 6/6/93";
#endif #endif
static char rcsid[] = "$NetBSD: netstat.c,v 1.3 1995/06/18 23:53:07 cgd Exp $"; static char rcsid[] = "$NetBSD: netstat.c,v 1.4 1996/08/11 04:19:16 explorer Exp $";
#endif /* not lint */ #endif /* not lint */
/* /*
@ -467,6 +467,8 @@ cmdnetstat(cmd, args)
p->ni_flags |= NIF_LACHG|NIF_FACHG; p->ni_flags |= NIF_LACHG|NIF_FACHG;
} }
nflag = new; nflag = new;
wclear(wnd);
labelnetstat();
goto redisplay; goto redisplay;
} }
if (!netcmd(cmd, args)) if (!netcmd(cmd, args))