From 1bfda8cb0356b4a9e81b9d8355292e0ad387ef22 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Mon, 29 Apr 1996 05:09:23 +0000 Subject: [PATCH] Fix some display bogons in the label editor. --- release/sysinstall/label.c | 10 ++++++++-- usr.sbin/sade/label.c | 10 ++++++++-- usr.sbin/sysinstall/label.c | 10 ++++++++-- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/release/sysinstall/label.c b/release/sysinstall/label.c index 0338faec56b7..b51abb2bcbbb 100644 --- a/release/sysinstall/label.c +++ b/release/sysinstall/label.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: label.c,v 1.45 1996/04/28 03:27:08 jkh Exp $ + * $Id: label.c,v 1.46 1996/04/28 22:54:18 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -228,8 +228,10 @@ record_label_chunks(Device **devs) label_chunk_info[j].c = NULL; if (here >= j) here = j ? j - 1 : 0; - if (ChunkWin) + if (ChunkWin) { wclear(ChunkWin); + wrefresh(ChunkWin); + } else ChunkWin = newwin(CHUNK_ROW_MAX - ChunkPartStartRow, 76, ChunkPartStartRow, 0); } @@ -509,6 +511,10 @@ diskLabel(char *str) beep(); msg = NULL; } + else { + move(23, 0); + clrtoeol(); + } key = toupper(getch()); switch (key) { int i; diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c index 0338faec56b7..b51abb2bcbbb 100644 --- a/usr.sbin/sade/label.c +++ b/usr.sbin/sade/label.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: label.c,v 1.45 1996/04/28 03:27:08 jkh Exp $ + * $Id: label.c,v 1.46 1996/04/28 22:54:18 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -228,8 +228,10 @@ record_label_chunks(Device **devs) label_chunk_info[j].c = NULL; if (here >= j) here = j ? j - 1 : 0; - if (ChunkWin) + if (ChunkWin) { wclear(ChunkWin); + wrefresh(ChunkWin); + } else ChunkWin = newwin(CHUNK_ROW_MAX - ChunkPartStartRow, 76, ChunkPartStartRow, 0); } @@ -509,6 +511,10 @@ diskLabel(char *str) beep(); msg = NULL; } + else { + move(23, 0); + clrtoeol(); + } key = toupper(getch()); switch (key) { int i; diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c index 0338faec56b7..b51abb2bcbbb 100644 --- a/usr.sbin/sysinstall/label.c +++ b/usr.sbin/sysinstall/label.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: label.c,v 1.45 1996/04/28 03:27:08 jkh Exp $ + * $Id: label.c,v 1.46 1996/04/28 22:54:18 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -228,8 +228,10 @@ record_label_chunks(Device **devs) label_chunk_info[j].c = NULL; if (here >= j) here = j ? j - 1 : 0; - if (ChunkWin) + if (ChunkWin) { wclear(ChunkWin); + wrefresh(ChunkWin); + } else ChunkWin = newwin(CHUNK_ROW_MAX - ChunkPartStartRow, 76, ChunkPartStartRow, 0); } @@ -509,6 +511,10 @@ diskLabel(char *str) beep(); msg = NULL; } + else { + move(23, 0); + clrtoeol(); + } key = toupper(getch()); switch (key) { int i;