From: sam@ravnborg.org
To: linux-kernel@vger.kernel.org
Cc: Sam Ravnborg <sam@neptun.ravnborg.org>, Sam Ravnborg <sam@ravnborg.org>
Subject: [PATCH 10/13] kconfig/menuconfig: do not let ncurses clutter screen on exit
Date: Sun, 01 Oct 2006 12:52:43 +0200 [thread overview]
Message-ID: <115969996811-git-send-email-sam@ravnborg.org> (raw)
In-Reply-To: <1159699967673-git-send-email-sam@ravnborg.org>
From: Sam Ravnborg <sam@neptun.ravnborg.org>
Do not initialize ncurses twice - it causes unpredicable
results. My display was sometimes weird after running
make menuconfig and I had to execute 'reset' to properly
restore my display.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
scripts/kconfig/mconf.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index f7abca4..08a4c7a 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -401,7 +401,7 @@ static void search_conf(void)
struct gstr res;
int dres;
again:
- reset_dialog();
+ dialog_clear();
dres = dialog_inputbox(_("Search Configuration Parameter"),
_("Enter CONFIG_ (sub)string to search for (omit CONFIG_)"),
10, 75, "");
@@ -603,7 +603,7 @@ static void conf(struct menu *menu)
item_make(_(" Save an Alternate Configuration File"));
item_set_tag('S');
}
- reset_dialog();
+ dialog_clear();
res = dialog_menu(prompt ? prompt : _("Main Menu"),
_(menu_instructions),
active_menu, &s_scroll);
@@ -684,7 +684,7 @@ static void conf(struct menu *menu)
static void show_textbox(const char *title, const char *text, int r, int c)
{
- reset_dialog();
+ dialog_clear();
dialog_textbox(title, text, r, c);
}
@@ -736,7 +736,7 @@ static void conf_choice(struct menu *men
if (child->sym == sym_get_choice_value(menu->sym))
item_set_tag('X');
}
- reset_dialog();
+ dialog_clear();
res = dialog_checklist(prompt ? prompt : _("Main Menu"),
_(radiolist_instructions),
15, 70, 6);
@@ -785,7 +785,7 @@ static void conf_string(struct menu *men
default:
heading = "Internal mconf error!";
}
- reset_dialog();
+ dialog_clear();
res = dialog_inputbox(prompt ? prompt : _("Main Menu"),
heading, 10, 75,
sym_get_string_value(menu->sym));
@@ -809,7 +809,7 @@ static void conf_load(void)
while (1) {
int res;
- reset_dialog();
+ dialog_clear();
res = dialog_inputbox(NULL, load_config_text,
11, 55, filename);
switch(res) {
@@ -833,7 +833,7 @@ static void conf_save(void)
{
while (1) {
int res;
- reset_dialog();
+ dialog_clear();
res = dialog_inputbox(NULL, save_config_text,
11, 55, filename);
switch(res) {
@@ -889,7 +889,7 @@ int main(int ac, char **av)
init_dialog(menu_backtitle);
do {
conf(&rootmenu);
- reset_dialog();
+ dialog_clear();
res = dialog_yesno(NULL,
_("Do you wish to save your "
"new kernel configuration?\n"
--
1.4.1
next prev parent reply other threads:[~2006-10-01 10:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-01 10:52 [PATCH 1/13] kconfig/lxdialog: refactor color support sam
2006-10-01 10:52 ` [PATCH 2/13] kconfig/lxdialog: add support for color themes and add blackbg theme sam
2006-10-01 10:52 ` [PATCH 3/13] kconfig/lxdialog: add a new theme bluetitle which is now default sam
2006-10-01 10:52 ` [PATCH 4/13] kconfig/menuconfig: lxdialog is now built-in sam
2006-10-01 10:52 ` [PATCH 5/13] kconfig/lxdialog: let <ESC><ESC> behave as expected sam
2006-10-01 10:52 ` [PATCH 6/13] kconfig/lxdialog: support resize sam
2006-10-01 10:52 ` [PATCH 7/13] kconfig/lxdialog: fix make mrproper sam
2006-10-01 10:52 ` [PATCH 8/13] kbuild: do not build mconf & lxdialog unless needed sam
2006-10-01 10:52 ` [PATCH 9/13] kconfig/lxdialog: clear long menu lines sam
2006-10-01 10:52 ` sam [this message]
2006-10-01 10:52 ` [PATCH 11/13] kbuild: make modpost processing configurable sam
2006-10-01 10:52 ` [PATCH 12/13] kconfig: fix saving alternate kconfig file in parent dir sam
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=115969996811-git-send-email-sam@ravnborg.org \
--to=sam@ravnborg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@neptun.ravnborg.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.