aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/mconf.c
diff options
context:
space:
mode:
authorVadim Bendebury (вб) <vbendeb@google.com>2009-12-20 03:29:49 -0500
committerMichal Marek <mmarek@suse.cz>2010-02-02 08:33:55 -0500
commitda60fbbcb637b37b1d77a41886ae4e275422ca96 (patch)
treeb75965f0cc17567b1b7723094e1e9358e23c3b12 /scripts/kconfig/mconf.c
parent5358db0b0e16470337c6ec08177deb3f68ed7673 (diff)
menuconfig: wrap long help lines
Help text for certain config options is very extensive (the text includes the names of all other options the option in question depends on). Long lines are not wrapped, making it impossible to see the list without scrolling horizontally. This patch adds some logic which wraps help screen lines at word boundaries to prevent truncating. Tested by running ARCH=powerpc make menuconfig O=/tmp/build which shows that the long lines are now wrapped, and ARCH=powerpc make xconfig O=/tmp/build to demonstrate that it still compiles and operates as expected. Signed-off-by: Vadim Bendebury <vbendeb@google.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig/mconf.c')
-rw-r--r--scripts/kconfig/mconf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 8413cf38ed27..ac1e9dacde97 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -638,6 +638,7 @@ static void show_help(struct menu *menu)
638{ 638{
639 struct gstr help = str_new(); 639 struct gstr help = str_new();
640 640
641 help.max_width = getmaxx(stdscr) - 10;
641 menu_get_ext_help(menu, &help); 642 menu_get_ext_help(menu, &help);
642 643
643 show_helptext(_(menu_get_prompt(menu)), str_get(&help)); 644 show_helptext(_(menu_get_prompt(menu)), str_get(&help));