summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-01-15 02:52:00 +0000
committerjkh <jkh@FreeBSD.org>1997-01-15 02:52:00 +0000
commitb80b05437847835ec499856bedb2917a600da12d (patch)
tree494bcdc5225a70ea8f17c33f5527b010eeb7d64a
parentaaad85f64d352118f3190bab31f3701ca1673bfd (diff)
downloadFreeBSD-src-b80b05437847835ec499856bedb2917a600da12d.zip
FreeBSD-src-b80b05437847835ec499856bedb2917a600da12d.tar.gz
Accept emacs-style editing keys for traversal and ESC as an abort character.
-rw-r--r--release/sysinstall/disks.c3
-rw-r--r--release/sysinstall/label.c3
-rw-r--r--release/sysinstall/options.c3
-rw-r--r--usr.sbin/sade/disks.c3
-rw-r--r--usr.sbin/sade/label.c3
-rw-r--r--usr.sbin/sysinstall/disks.c3
-rw-r--r--usr.sbin/sysinstall/label.c3
-rw-r--r--usr.sbin/sysinstall/options.c3
8 files changed, 24 insertions, 0 deletions
diff --git a/release/sysinstall/disks.c b/release/sysinstall/disks.c
index 407c8ca..c82896e 100644
--- a/release/sysinstall/disks.c
+++ b/release/sysinstall/disks.c
@@ -209,12 +209,14 @@ diskPartition(Device *dev, Disk *d)
msg = NULL;
break;
+ case '\020': /* ^P */
case KEY_UP:
case '-':
if (current_chunk != 0)
--current_chunk;
break;
+ case '\016': /* ^N */
case KEY_DOWN:
case '+':
case '\r':
@@ -413,6 +415,7 @@ diskPartition(Device *dev, Disk *d)
clear();
break;
+ case '\033': /* ESC */
case 'Q':
chunking = FALSE;
/* Don't trash the MBR if the first (and therefore only) chunk is marked for a truly dedicated
diff --git a/release/sysinstall/label.c b/release/sysinstall/label.c
index 65216a8..30bf9d5 100644
--- a/release/sysinstall/label.c
+++ b/release/sysinstall/label.c
@@ -523,6 +523,7 @@ diskLabel(char *str)
clear_wins();
break;
+ case '\020': /* ^P */
case KEY_UP:
case '-':
if (here != 0)
@@ -532,6 +533,7 @@ diskLabel(char *str)
++here;
break;
+ case '\016': /* ^N */
case KEY_DOWN:
case '+':
case '\r':
@@ -917,6 +919,7 @@ diskLabel(char *str)
msg = "A most prudent choice!";
break;
+ case '\033': /* ESC */
case 'Q':
labeling = FALSE;
break;
diff --git a/release/sysinstall/options.c b/release/sysinstall/options.c
index 60eff9d..a70799e 100644
--- a/release/sysinstall/options.c
+++ b/release/sysinstall/options.c
@@ -247,6 +247,7 @@ optionsEditor(dialogMenuItem *self)
clear();
break;
+ case '\020': /* ^P */
case KEY_UP:
if (currOpt)
--currOpt;
@@ -254,6 +255,7 @@ optionsEditor(dialogMenuItem *self)
for (currOpt = 0; Options[currOpt + 1].name; currOpt++);
continue;
+ case '\016': /* ^N */
case KEY_DOWN:
if (Options[currOpt + 1].name)
++currOpt;
@@ -275,6 +277,7 @@ optionsEditor(dialogMenuItem *self)
clear();
continue;
+ case '\033': /* ESC */
case 'Q':
clear();
dialog_clear();
diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c
index 407c8ca..c82896e 100644
--- a/usr.sbin/sade/disks.c
+++ b/usr.sbin/sade/disks.c
@@ -209,12 +209,14 @@ diskPartition(Device *dev, Disk *d)
msg = NULL;
break;
+ case '\020': /* ^P */
case KEY_UP:
case '-':
if (current_chunk != 0)
--current_chunk;
break;
+ case '\016': /* ^N */
case KEY_DOWN:
case '+':
case '\r':
@@ -413,6 +415,7 @@ diskPartition(Device *dev, Disk *d)
clear();
break;
+ case '\033': /* ESC */
case 'Q':
chunking = FALSE;
/* Don't trash the MBR if the first (and therefore only) chunk is marked for a truly dedicated
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c
index 65216a8..30bf9d5 100644
--- a/usr.sbin/sade/label.c
+++ b/usr.sbin/sade/label.c
@@ -523,6 +523,7 @@ diskLabel(char *str)
clear_wins();
break;
+ case '\020': /* ^P */
case KEY_UP:
case '-':
if (here != 0)
@@ -532,6 +533,7 @@ diskLabel(char *str)
++here;
break;
+ case '\016': /* ^N */
case KEY_DOWN:
case '+':
case '\r':
@@ -917,6 +919,7 @@ diskLabel(char *str)
msg = "A most prudent choice!";
break;
+ case '\033': /* ESC */
case 'Q':
labeling = FALSE;
break;
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c
index 407c8ca..c82896e 100644
--- a/usr.sbin/sysinstall/disks.c
+++ b/usr.sbin/sysinstall/disks.c
@@ -209,12 +209,14 @@ diskPartition(Device *dev, Disk *d)
msg = NULL;
break;
+ case '\020': /* ^P */
case KEY_UP:
case '-':
if (current_chunk != 0)
--current_chunk;
break;
+ case '\016': /* ^N */
case KEY_DOWN:
case '+':
case '\r':
@@ -413,6 +415,7 @@ diskPartition(Device *dev, Disk *d)
clear();
break;
+ case '\033': /* ESC */
case 'Q':
chunking = FALSE;
/* Don't trash the MBR if the first (and therefore only) chunk is marked for a truly dedicated
diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c
index 65216a8..30bf9d5 100644
--- a/usr.sbin/sysinstall/label.c
+++ b/usr.sbin/sysinstall/label.c
@@ -523,6 +523,7 @@ diskLabel(char *str)
clear_wins();
break;
+ case '\020': /* ^P */
case KEY_UP:
case '-':
if (here != 0)
@@ -532,6 +533,7 @@ diskLabel(char *str)
++here;
break;
+ case '\016': /* ^N */
case KEY_DOWN:
case '+':
case '\r':
@@ -917,6 +919,7 @@ diskLabel(char *str)
msg = "A most prudent choice!";
break;
+ case '\033': /* ESC */
case 'Q':
labeling = FALSE;
break;
diff --git a/usr.sbin/sysinstall/options.c b/usr.sbin/sysinstall/options.c
index 60eff9d..a70799e 100644
--- a/usr.sbin/sysinstall/options.c
+++ b/usr.sbin/sysinstall/options.c
@@ -247,6 +247,7 @@ optionsEditor(dialogMenuItem *self)
clear();
break;
+ case '\020': /* ^P */
case KEY_UP:
if (currOpt)
--currOpt;
@@ -254,6 +255,7 @@ optionsEditor(dialogMenuItem *self)
for (currOpt = 0; Options[currOpt + 1].name; currOpt++);
continue;
+ case '\016': /* ^N */
case KEY_DOWN:
if (Options[currOpt + 1].name)
++currOpt;
@@ -275,6 +277,7 @@ optionsEditor(dialogMenuItem *self)
clear();
continue;
+ case '\033': /* ESC */
case 'Q':
clear();
dialog_clear();
OpenPOWER on IntegriCloud