public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: nir.tzachar@gmail.com
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
	sam@ravnborg.org, zippel@linux-m68k.org, andi@firstfloor.org
Subject: Re: [PATCH] nconfig v5
Date: Fri, 6 Nov 2009 11:12:32 -0800	[thread overview]
Message-ID: <20091106111232.9534f9f7.randy.dunlap@oracle.com> (raw)
In-Reply-To: <1257496614-12052-1-git-send-email-nir.tzachar@gmail.com>

On Fri,  6 Nov 2009 10:36:54 +0200 nir.tzachar@gmail.com wrote:

> From: Nir Tzachar <nir.tzachar@gmail.com>
> 
> This patch was inspired by the kernel projects page, where an ncurses
> replacement for menuconfig was mentioned (by Sam Ravnborg).
> 
> Building on menuconfig, this patch implements a more modern look interface using
> ncurses and ncurses' satellite libraries (menu, panel, form). The implementation
> does not depend on lxdialog, which is currently distributed with the kernel.
> 
> Attached is a reworked version of nconfig. The old menuconfig navigation scheme
> was dropped, and function keys are used for special choices. Arrows are used in
> a more intuitive fashion for menu navigation.
> 
> 1) The old menuconfig bottom menu was dropped in favor of function keys (which
>    are interchangeable with regular numbers).
> 2) Arrows are used for navigation, such that <left> always goes back one menu
>    and <right> enters a sub-menu.
> 3) The exit sequence has been improved, such that it is possible to cancel the
>    exit if there are pending changes and resume editing.
> 4) All dialog boxes have an <OK> button, which is used to exit the dialog.
> 5) A 'show all symbols' option has been added, similarly to xconfig.
> 
> Please condsider this version as a proper replacement for menuconfig.
> Cheers, Nir.
> 
> Signed-off-by: Nir Tzachar <nir.tzachar@gmail.com>
> 
> ---
>  scripts/kconfig/nconf.c     | 1545 +++++++++++++++++++++++++++++++++++++++++++
>  scripts/kconfig/nconf.gui.c |  613 +++++++++++++++++
>  scripts/kconfig/nconf.h     |   93 +++
>  3 files changed, 2251 insertions(+), 0 deletions(-)
>  create mode 100644 scripts/kconfig/nconf.c
>  create mode 100644 scripts/kconfig/nconf.gui.c
>  create mode 100644 scripts/kconfig/nconf.h


> diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
> new file mode 100644
> index 0000000..b310a2c
> --- /dev/null
> +++ b/scripts/kconfig/nconf.c
> @@ -0,0 +1,1545 @@
> +/*
> + * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com?
> + * Released under the terms of the GNU GPL v2.0.
> + *
> + * Derived from menuconfig.
> + *
> + */
> +#define LKC_DIRECT_LINK
> +#include "lkc.h"
> +#include "nconf.h"
> +
> +static const char nconf_readme[] = N_(

> +"Optional personality available\n"
> +"------------------------------\n"
> +"If you prefer to have all of the kernel options listed in a single\n"
> +"menu, rather than the default multimenu hierarchy, run the nconfig\n"
> +"with NCONFIG_MODE environment variable set to single_menu. Example:\n"
> +"\n"
> +"make NCONFIG_MODE = single_menu nconfig\n"

No spaces allowed around the '=' sign.


> +"\n"
> +"<Enter> will then unroll the appropriate category, or enfold it if it\n"
> +"is already unrolled.\n"
> +"\n"
> +"Note that this mode can eventually be a little more CPU expensive\n"
> +"(especially with a larger number of unrolled categories) than the\n"
> +"default mode.\n"
> +"\n"),
> +menu_no_f_instructions[] = N_(
> +" You do not have function keys support. Please follow the\n"
> +" following instructions:\n"
> +" Arrow keys navigate the menu.\n"
> +" <Enter> or <right-arrow> selects submenus --->.\n"
> +" Capital Letters are hotkeys.\n"
> +" Pressing <Y> includes, <N> excludes, <M> modularizes features.\n"
> +" Press <Esc> or <left-arrow> to go back one menu, \n"
> +" <?> or <h> for Help, </> for Search.\n"
> +" <1> is interchangable with <F1>, <2> with <F2>, etc.\n"
> +" Legend: [*] built-in  [ ] excluded  <M> module  < > module capable.\n"
> +" <Esc> allways leaves the current window\n"),


	always

> +menu_instructions[] = N_(
> +" Arrow keys navigate the menu.\n"
> +" <Enter> or <right-arrow> selects submenus --->.\n"
> +" Capital Letters are hotkeys.\n"
> +" Pressing <Y> includes, <N> excludes, <M> modularizes features.\n"
> +" Press <Esc>, <F3> or <left-arrow> to go back one menu, \n"
> +" <?>, <F1> or <h> for Help, </> for Search.\n"
> +" <1> is interchangable with <F1>, <2> with <F2>, etc.\n"
> +" Legend: [*] built-in  [ ] excluded  <M> module  < > module capable.\n"
> +" <Esc> allways leaves the current window\n"),

	always



When I use F7 to exit, the program hangs.  I have to kill it.
I don't see any error messages.
(I'm testing this on a 2.6.32-rc6 kernel source tree).

ncurses-5.6-41
ncurses-devel-5.6-41

---
~Randy

  parent reply	other threads:[~2009-11-06 20:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-06  8:36 [PATCH] nconfig v5 nir.tzachar
2009-11-06 10:20 ` Frans Pop
2009-11-06 16:04 ` Valdis.Kletnieks
2009-11-06 18:52   ` Nir Tzachar
2009-11-06 19:12 ` Randy Dunlap [this message]
2009-11-07  1:07   ` Randy Dunlap
2009-11-07 14:07     ` [PATCH] nconfig v6 nir.tzachar
2009-11-07 22:10       ` Ben Nizette
2009-11-25 10:28       ` [PATCH] nconfig v7 nir.tzachar
2009-11-30 14:40         ` Michal Marek
2009-11-30 16:34           ` Nir Tzachar
  -- strict thread matches above, loose matches on Subject: below --
2009-11-06 14:39 [PATCH] nconfig v5 nir.tzachar

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=20091106111232.9534f9f7.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=andi@firstfloor.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nir.tzachar@gmail.com \
    --cc=sam@ravnborg.org \
    --cc=zippel@linux-m68k.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