Re: [PATCH] ncurses based config

From: Bartlomiej Zolnierkiewicz
Date: Wed Sep 03 2008 - 16:20:57 EST


On Wednesday 03 September 2008, Randy.Dunlap wrote:
> On Wed, 3 Sep 2008, Bartlomiej Zolnierkiewicz wrote:
>
> >
> > Hi,
> >
> > On Wednesday 03 September 2008, Nir Tzachar wrote:
> > > 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.
> > >
> > > The only change outside of nconf.c is due to a name clash: both ncurses and
> > > lkc.h define a fucntion named menu_init(). I changed the internal version's
> > > name.
> > >
> > > Please consider the patch for merging. Comments are appreciated.
> >
> > Could you please tell what kernel version is it against?
>
> It applies cleanly to 2.6.27-rc5-git4 FWIW.
>
> > I'm getting the following error on make nconfig (and also on make menuconfig
> > which works fine without this patch) with the current Linus' tree:
> >
> > HOSTCC scripts/kconfig/conf.o
> > HOSTCC scripts/kconfig/kxgettext.o
> > HOSTCC scripts/kconfig/nconf.o
> > HOSTCC scripts/kconfig/zconf.tab.o
> > scripts/kconfig/zconf.tab.c: In function ÃÃconf_parseÃÃ:
> > scripts/kconfig/zconf.tab.c:2258: warning: implicit declaration of function ÃÃmenu_initÃÃ
> > HOSTLD scripts/kconfig/nconf
> > scripts/kconfig/nconf arch/x86/Kconfig
> > make[1]: *** [nconfig] Segmentation fault
> > make: *** [nconfig] Error 2
>
> Need to change all /menu_init/ in zconf.tab.c* to /_menu_init/.

Thanks, this fixed it.

> Need to strip trailing whitespace on new source code lines.
>
> I'm seeing cyan (?) foreground on black background. Is that the colors
> that were planned?
>
> Instructions are dark blue on black -- cannot read them.

Yeah. Additionally the main window for selecting options
is limited to ~40 characters x 5 lines. Is this intended?

Also it seems that hotkeys are not highlighted/working... :(

Thanks,
Bart
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/