mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: linux-kernel@vger.kernel.org
Subject: Re: (Simple) Basic Design Flaw in make menuconfig GUI
Date: Wed, 3 Sep 2003 19:03:48 +0200	[thread overview]
Message-ID: <20030903170348.GJ14376@lug-owl.de> (raw)
In-Reply-To: <20030903083334.6a98a4f5.rddunlap@osdl.org>

[-- Attachment #1: Type: text/plain, Size: 2719 bytes --]

On Wed, 2003-09-03 08:33:34 -0700, Randy.Dunlap <rddunlap@osdl.org>
wrote in message <20030903083334.6a98a4f5.rddunlap@osdl.org>:
> On Wed, 3 Sep 2003 10:40:17 -0400 "Stevo" <stevo@cool3dz.com> wrote:
> 
> | PROBLEM: (ocassionally) While I am speeding through the kernel
> | configuration, I will accidentally hit the "Esc" key one too many times (I'm
> | sure we've all done this) and it will leave me at the "exit" screen:

> | can someone please add one more simple choice to the "exit" menu?
> 
> Yes, I've needed that choice at times also.

Like this?


--- linux-2.6.0-test4-bk5/scripts/kconfig/mconf.c.jbglaw	2003-09-03 18:28:06.000000000 +0200
+++ linux-2.6.0-test4-bk5/scripts/kconfig/mconf.c	2003-09-03 19:00:31.000000000 +0200
@@ -773,27 +773,56 @@
 	tcgetattr(1, &ios_org);
 	atexit(conf_cleanup);
 	init_wsize();
-	conf(&rootmenu);
 
-	do {
-		cprint_init();
-		cprint("--yesno");
-		cprint("Do you wish to save your new kernel configuration?");
-		cprint("5");
-		cprint("60");
-		stat = exec_conf();
-	} while (stat < 0);
-
-	if (stat == 0) {
-		conf_write(NULL);
-		printf("\n\n"
-			"*** End of Linux kernel configuration.\n"
-			"*** Execute 'make' to build the kernel or try 'make help'."
-			"\n\n");
-	} else
-		printf("\n\n"
-			"Your kernel configuration changes were NOT saved."
-			"\n\n");
+	while (1) {
+		/*
+		 * Config dialog
+		 */
+		conf(&rootmenu);
+
+		/*
+		 * Really quit?
+		 */
+		do {
+			cprint_init();
+			cprint("--title");
+			cprint("Save configuration");
+			cprint("--radiolist");
+			cprint(radiolist_instructions);
+			cprint("15");
+			cprint("70");
+			cprint("6");
+
+			cprint("continue");
+			cprint("Continue with configuation");
+			cprint("ON");
+
+			cprint("save");
+			cprint("Save .config and exit");
+			cprint("OFF");
+
+			cprint("exit");
+			cprint("Don't save .config and exit");
+			cprint("OFF");
+
+			stat = exec_conf();
+		} while (stat < 0);
+
+		if(!strcmp(input_buf, "save")) {
+			conf_write(NULL);
+			printf("\n\n"
+				"*** End of Linux kernel configuration.\n"
+				"*** Execute 'make' to build the kernel or try 'make help'."
+				"\n\n");
+			return 0;
+		}
+		if(!strcmp(input_buf, "exit")) {
+			printf("\n\n"
+				"Your kernel configuration changes were NOT saved."
+				"\n\n");
+			return 0;
+		}
+	}
 
 	return 0;
 }



MfG, JBG

-- 
   Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
      ret = do_actions((curr | FREE_SPEECH) & ~(IRAQ_WAR_2 | DRM | TCPA));

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-09-03 17:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-03 14:40 Stevo
2003-09-03 15:33 ` Randy.Dunlap
2003-09-03 17:03   ` Jan-Benedict Glaw [this message]
2003-09-03 22:17     ` Randy.Dunlap
2003-09-10 15:22 ` Tim Connors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030903170348.GJ14376@lug-owl.de \
    --to=jbglaw@lug-owl.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®