From c13a841e4105701ddb5f3d53af10f6761bfd0818 Mon Sep 17 00:00:00 2001 From: jkh Date: Sat, 3 Aug 1996 05:29:24 +0000 Subject: Make the same fix to the disk partition editor screen. --- usr.sbin/sade/disks.c | 10 ++++------ usr.sbin/sysinstall/disks.c | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c index d877cf0..db49a09 100644 --- a/usr.sbin/sade/disks.c +++ b/usr.sbin/sade/disks.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: disks.c,v 1.60 1996/07/31 14:49:20 jkh Exp $ + * $Id: disks.c,v 1.61 1996/08/01 11:39:47 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -188,10 +188,8 @@ diskPartition(Device *dev, Disk *d) msg = NULL; } - key = getch() & 0x7F; - if (islower(key)) - key = toupper(key); - switch (key) { + key = getch(); + switch (toupper(key)) { case '\014': /* ^L */ clear(); @@ -308,7 +306,7 @@ diskPartition(Device *dev, Disk *d) } break; - case '\177': + case KEY_DC: case 'D': if (chunk_info[current_chunk]->type == unused) msg = "Partition is already unused!"; diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c index d877cf0..db49a09 100644 --- a/usr.sbin/sysinstall/disks.c +++ b/usr.sbin/sysinstall/disks.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: disks.c,v 1.60 1996/07/31 14:49:20 jkh Exp $ + * $Id: disks.c,v 1.61 1996/08/01 11:39:47 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -188,10 +188,8 @@ diskPartition(Device *dev, Disk *d) msg = NULL; } - key = getch() & 0x7F; - if (islower(key)) - key = toupper(key); - switch (key) { + key = getch(); + switch (toupper(key)) { case '\014': /* ^L */ clear(); @@ -308,7 +306,7 @@ diskPartition(Device *dev, Disk *d) } break; - case '\177': + case KEY_DC: case 'D': if (chunk_info[current_chunk]->type == unused) msg = "Partition is already unused!"; -- cgit v1.1