From patchwork Sat Mar 4 16:55:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Dobriyan X-Patchwork-Id: 64261 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1026272wrd; Sat, 4 Mar 2023 09:49:54 -0800 (PST) X-Google-Smtp-Source: AK7set8fLcoyWFUU6nmwtyBc6D7vCBG/P02+VNkNLAsHEnbSD2ahYJ29eRhY8aAoZUEiYLB/6Kp3 X-Received: by 2002:aa7:d496:0:b0:4b3:32a9:eda0 with SMTP id b22-20020aa7d496000000b004b332a9eda0mr5465380edr.32.1677952194550; Sat, 04 Mar 2023 09:49:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677952194; cv=none; d=google.com; s=arc-20160816; b=DKVbXXd4r0KE+5mddKwpLrEBxWwc15cPdSiTB0SAHDp61DA+zLlP/1SNh3VUzxrjrd yIqL0LY5Igc3V5EsMx2TWtDbopJ3Lj9pWFQKk8h4qMOvji/hZ99DWUQfNv/yVoFDEPTw mCcsco65dnfSxKKjOi+icrnVVycxSCUB/ht/0ZJZlaf+i7jsZPZOHBZf2aNtyYPP+jbI qXE+5XMBzkf9/b8AjO5xTqJGqNGAceOLoyHZq2GkLWVdTy8HrzV1W2/UkZIGxwpQ5AWC 9qEkYTraDoA9XTnXOH7o5W4ORQw60cmQKTy/AIcgGMtB3Fw9I8+0yZoc1B0JKDsamyAZ QO7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=9KOfWjloE4YaCN5sz26paM0Qiekh/0t9UUnTSBIVRGA=; b=eEjfFMh/6Z4Zgjh0QQ9HVrvY+5sD4G/4G40yXptMiO0q9C72u31LHfpDoAuMaYd5Y7 6U2aqnjkI9glSiYcrUVTrDDm8fWC2IrpQP1/b21puLhrVMN1hMfxshM4X5N77JwfvHnJ tSH7GaS6nM+dUvwmboqsFPwGjiC4NkubPftGF96pW8dpLUKDQVzN4JwOlx57nC6wW30t h15NV1rPfgUAFJsg53MPhjd7qMwvse0KXeeKsVkhYilGjjFrsUmpB0bphcYd5090DetP gAFD9j3HWk9z+AMvkOJ7jui2rtgi0pxDnwkEM+HvivPmHnc5N473a7+KterWIPPL5wtf MjtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qEEJV//F"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020aa7d605000000b004a7670bdaf3si3107026edr.447.2023.03.04.09.49.28; Sat, 04 Mar 2023 09:49:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qEEJV//F"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229613AbjCDQzd (ORCPT + 99 others); Sat, 4 Mar 2023 11:55:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbjCDQzb (ORCPT ); Sat, 4 Mar 2023 11:55:31 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E4E11167A; Sat, 4 Mar 2023 08:55:30 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id j19-20020a05600c191300b003eb3e1eb0caso5712662wmq.1; Sat, 04 Mar 2023 08:55:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677948928; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=9KOfWjloE4YaCN5sz26paM0Qiekh/0t9UUnTSBIVRGA=; b=qEEJV//FrWGFPvMkjqXVm8a+6JQO+uVUggaBpZcEO3u6NU5NCk6cWs2aO2oyHEKKZ2 jdjlQqeGP+WvnqUPim1mINXNTqdnMG9C+qqs7avxBtoYtJ6KglRlc5t9t4nAZA5+54JH KZoAMk/R8mgU4buEPf2Pt02roTLoLjt8/lyjDz2aSfg32D6Wt7xkS7lJxYD59glAuMbe EnCauEzTgQFfeRYbw3XjLfA63XWn6irzKXKoTBlOENMiYLKBeCdwgEEKXv9BL9L03fEA COEm3SbycqPL1Asy/cAk1pIPScR6gaSZr3R36t5CJSEw76JLKdzMNssPwlWM+PbHG+Jm DYmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677948928; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9KOfWjloE4YaCN5sz26paM0Qiekh/0t9UUnTSBIVRGA=; b=nRUC8EEcCWs2Z8myxRkZ3MWgrN1iWKNw/Nl8vMiiW3Ns69/V/lPE3ubMwFe0ljxy1r wDbRlFj53KuSiLSX15XXJw7PldSgHvkemN0ztSZCCQy/pdNuzIqiaeDvoiqexf7WFyCK IeK+TEM2jSuRg62l0m7Ynpbo4iypkQhWn0Mc0moIWjPuvHdpBUpD8/3HCnQ4L4CQv1X+ SicbbJ+vvhwHbV2H5wnvwrtB4RIObrNXt+BHRDUiqgYxSZYkvJLap7tstBVj2qVlADuL c1uIjWKOXQNg9RMkoKTej4pJ+8T7hRy271aUUy1YzdtXiwo62JEaQuDg9tVBDdJseeMa DZ7w== X-Gm-Message-State: AO0yUKUbGG/+BKyghOvj7KpdVZRxto79LzwIC5yNHljf16JK0fTu6dO+ YFPwpgxWYbFfG1f5whBRYQ== X-Received: by 2002:a05:600c:5247:b0:3e9:b2f2:27a9 with SMTP id fc7-20020a05600c524700b003e9b2f227a9mr5160268wmb.14.1677948928372; Sat, 04 Mar 2023 08:55:28 -0800 (PST) Received: from p183 ([46.53.251.240]) by smtp.gmail.com with ESMTPSA id j21-20020a05600c075500b003e0238d9101sm5518878wmn.31.2023.03.04.08.55.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 08:55:27 -0800 (PST) Date: Sat, 4 Mar 2023 19:55:25 +0300 From: Alexey Dobriyan To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, adobriyan@gmail.com Subject: [PATCH 1/2] menuconfig: delete shadows, reclaim vertical space Message-ID: <94a94ef4-9d55-4293-8363-3c0243eceae1@p183> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759460400060617682?= X-GMAIL-MSGID: =?utf-8?q?1759460400060617682?= Menuconfig has lots of vertical space wasted: on my system there are 17 lines of useful information about config options and 14 lines of useless fluff: legend, horizontal separators and shadows. Sitation is even worse on smaller terminals because fixed vertical lines do not go away, but config option lines do decreasing informational density even more. Delete shadows and increase menu size to reclaim vertical space. Signed-off-by: Alexey Dobriyan --- scripts/kconfig/lxdialog/checklist.c | 2 -- scripts/kconfig/lxdialog/dialog.h | 1 - scripts/kconfig/lxdialog/inputbox.c | 2 -- scripts/kconfig/lxdialog/menubox.c | 6 ++---- scripts/kconfig/lxdialog/textbox.c | 2 -- scripts/kconfig/lxdialog/util.c | 22 ---------------------- scripts/kconfig/lxdialog/yesno.c | 2 -- 7 files changed, 2 insertions(+), 35 deletions(-) --- a/scripts/kconfig/lxdialog/checklist.c +++ b/scripts/kconfig/lxdialog/checklist.c @@ -130,8 +130,6 @@ int dialog_checklist(const char *title, const char *prompt, int height, x = (getmaxx(stdscr) - width) / 2; y = (getmaxy(stdscr) - height) / 2; - draw_shadow(stdscr, y, x, height, width); - dialog = newwin(height, width, y, x); keypad(dialog, TRUE); --- a/scripts/kconfig/lxdialog/dialog.h +++ b/scripts/kconfig/lxdialog/dialog.h @@ -206,7 +206,6 @@ void print_button(WINDOW * win, const char *label, int y, int x, int selected); void print_title(WINDOW *dialog, const char *title, int width); void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box, chtype border); -void draw_shadow(WINDOW * win, int y, int x, int height, int width); int first_alpha(const char *string, const char *exempt); int dialog_yesno(const char *title, const char *prompt, int height, int width); --- a/scripts/kconfig/lxdialog/inputbox.c +++ b/scripts/kconfig/lxdialog/inputbox.c @@ -52,8 +52,6 @@ int dialog_inputbox(const char *title, const char *prompt, int height, int width x = (getmaxx(stdscr) - width) / 2; y = (getmaxy(stdscr) - height) / 2; - draw_shadow(stdscr, y, x, height, width); - dialog = newwin(height, width, y, x); keypad(dialog, TRUE); --- a/scripts/kconfig/lxdialog/menubox.c +++ b/scripts/kconfig/lxdialog/menubox.c @@ -183,7 +183,7 @@ int dialog_menu(const char *title, const char *prompt, if (height < MENUBOX_HEIGTH_MIN || width < MENUBOX_WIDTH_MIN) return -ERRDISPLAYTOOSMALL; - height -= 4; + height -= 2; width -= 5; menu_height = height - 10; @@ -191,9 +191,7 @@ int dialog_menu(const char *title, const char *prompt, /* center dialog box on screen */ x = (getmaxx(stdscr) - width) / 2; - y = (getmaxy(stdscr) - height) / 2; - - draw_shadow(stdscr, y, x, height, width); + y = 2; dialog = newwin(height, width, y, x); keypad(dialog, TRUE); --- a/scripts/kconfig/lxdialog/textbox.c +++ b/scripts/kconfig/lxdialog/textbox.c @@ -88,8 +88,6 @@ int dialog_textbox(const char *title, char *tbuf, int initial_height, x = (getmaxx(stdscr) - width) / 2; y = (getmaxy(stdscr) - height) / 2; - draw_shadow(stdscr, y, x, height, width); - dialog = newwin(height, width, y, x); keypad(dialog, TRUE); --- a/scripts/kconfig/lxdialog/util.c +++ b/scripts/kconfig/lxdialog/util.c @@ -491,28 +491,6 @@ draw_box(WINDOW * win, int y, int x, int height, int width, } } -/* - * Draw shadows along the right and bottom edge to give a more 3D look - * to the boxes - */ -void draw_shadow(WINDOW * win, int y, int x, int height, int width) -{ - int i; - - if (has_colors()) { /* Whether terminal supports color? */ - wattrset(win, dlg.shadow.atr); - wmove(win, y + height, x + 2); - for (i = 0; i < width; i++) - waddch(win, winch(win) & A_CHARTEXT); - for (i = y + 1; i < y + height + 1; i++) { - wmove(win, i, x + width); - waddch(win, winch(win) & A_CHARTEXT); - waddch(win, winch(win) & A_CHARTEXT); - } - wnoutrefresh(win); - } -} - /* * Return the position of the first alphabetic character in a string. */ --- a/scripts/kconfig/lxdialog/yesno.c +++ b/scripts/kconfig/lxdialog/yesno.c @@ -41,8 +41,6 @@ int dialog_yesno(const char *title, const char *prompt, int height, int width) x = (getmaxx(stdscr) - width) / 2; y = (getmaxy(stdscr) - height) / 2; - draw_shadow(stdscr, y, x, height, width); - dialog = newwin(height, width, y, x); keypad(dialog, TRUE); From patchwork Sat Mar 4 16:56:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Dobriyan X-Patchwork-Id: 64258 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1012959wrd; Sat, 4 Mar 2023 09:12:23 -0800 (PST) X-Google-Smtp-Source: AK7set+SeeMztlgFF7Tsl54iY1vCJBmR/SD1+rtgBVScmMQrkw4ysvCCn9bvfekA5jm1cCtqXhaA X-Received: by 2002:aa7:d88c:0:b0:4ab:4c36:463c with SMTP id u12-20020aa7d88c000000b004ab4c36463cmr5821962edq.16.1677949943200; Sat, 04 Mar 2023 09:12:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677949943; cv=none; d=google.com; s=arc-20160816; b=e7FBw8BhCN2igOYPigtaW2Jiw+RHQxPgrSBkeo0amsRLA/pswmggnqjP2MlD8vM9nx eckQZ1+kGjTAFgvOUHTN5wW214dZzQMBuK7nn6RHjqO2IzA9wn1qLe7smOjfVpZBjRi7 SBRp+r+0vDTjdB7xdzmaUjXKRUZYEOQtn4Sf792TVai7HQOiS/ZABpuJWJYoyGV65cAa sQs0ePR3B8JYF2QJtttn/0xL2d5XG4d/tEB4N5/9dmGx9+mnF3Kx5DTFtxIBwfa8fcLt on871woR2jLbpf34WtolJh7k02xJHqUiMEotDo5+ikb0VJQqiLwHLwSSGUeENcpGZpCk ergg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7DFg40ZbzBwbxAQIzgLZb9hlOQi951FRq11YcrT+rHY=; b=myJMON3EjWwpDxVYIw64yJCOaMssy0J029dzeoJlKEEi8B/PQXgkh3sVE/xrjNp4OK Wmht9DtMquYB04p8QjwtKpJk0q5hMKuOq7EJKFXQIARORUMvSVM1fcT0qfk5Z/cel5a2 c4UmUKdvqbKHp/BU5A0Z5PybY7EIJ+Yp6GGn7x1xo9IOnDWSCy3TNrlc0udmRaNtkMhb TiWhyy1on48lTYE5Xs73oP25D0JwQBA3vUq3x21eHd11gX/pQflRDE87EFuVY2oeG/V9 8Hu251msuGZejDc6CUTmcPht3z5DviwFWOSsQjPNlZMS8aRZib6qTPBk4y9+5jAzFU0V pwyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R1khRiSl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz3-20020a1709072ce300b008d4d102a7b8si7268438ejc.365.2023.03.04.09.11.56; Sat, 04 Mar 2023 09:12:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R1khRiSl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229661AbjCDQ4e (ORCPT + 99 others); Sat, 4 Mar 2023 11:56:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbjCDQ4d (ORCPT ); Sat, 4 Mar 2023 11:56:33 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 429A51167A; Sat, 4 Mar 2023 08:56:32 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id l7-20020a05600c1d0700b003eb5e6d906bso2887267wms.5; Sat, 04 Mar 2023 08:56:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677948991; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=7DFg40ZbzBwbxAQIzgLZb9hlOQi951FRq11YcrT+rHY=; b=R1khRiSljPmQfcARuhVjpQYpIkeP1JdmNXv8h9lvWE+A7dz2VPO0eE1tpN53c/CnM4 ob7ys3L8QyRp3iVPTVT/H5s+6bCj0FDUrFvpsiAw1h91iLmf3jgcptTzur15iahJ/OUH 308TI8AeR6r/KzJaQV2QDATy3zcKkfzu915PpYSuXqe5QNzx5iNn0TuAOVyU4h/TI/xA q1Y+dD+3gInsxY2CpcVrQqBmPWkBw4bnCdNAPxgUYj4LaRtOULRr9/nNUFvF7sksoKQa fxst/e3agkh3KssB0R0F1TQXNHa4wx36UgSWne5QKBCBTcxmExZ2aJQt93IGpI3yQetq s4ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677948991; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7DFg40ZbzBwbxAQIzgLZb9hlOQi951FRq11YcrT+rHY=; b=Qth2WKc15Uaw2kEy7hNErfKteUas8JVbx6heFoUjsB3SDuU79E21+yMQS9sRuRDxGk JTqt/d6rKNml93Hm6CBC6t2CMtf+fkO6w9sEOhLOtbaDrU2Vl/BdnxLK17mA6293Z/YX l6nxzm7yhlLC3+a9RxfjaGxt4KOAo1ypTjEDHkyobXTMf0JXgJT7hBWKbXGN1cMOo5fJ Az0iaU95hvjxsPFPxHoQwk30Ffumi8iBzeu/9kIg+1MzAfgw6Ia6NI0TAA/hjNV2rRVd E+OAZUOCcilyLMhKvidS0Py+q3e/kpd/8Yc9gRPYoYclgBlgAy0WgxqhRaWY2tQFRxCg QY/Q== X-Gm-Message-State: AO0yUKVsKEKX00qHL0ZsoTWf5vDK91RRMHiuPneM0YUPWtIfXCeaXDl+ xlBvbyzrFUEo0Nl+oCoWaQ== X-Received: by 2002:a05:600c:3ba6:b0:3ea:e7f6:fc2e with SMTP id n38-20020a05600c3ba600b003eae7f6fc2emr4909406wms.6.1677948990714; Sat, 04 Mar 2023 08:56:30 -0800 (PST) Received: from p183 ([46.53.251.240]) by smtp.gmail.com with ESMTPSA id v12-20020a05600c12cc00b003de2fc8214esm5525769wmd.20.2023.03.04.08.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 08:56:30 -0800 (PST) Date: Sat, 4 Mar 2023 19:56:28 +0300 From: Alexey Dobriyan To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] menuconfig: reclaim 1 more vertical line Message-ID: <8a8c8ed8-f322-4024-9433-3a9cb524484e@p183> References: <94a94ef4-9d55-4293-8363-3c0243eceae1@p183> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <94a94ef4-9d55-4293-8363-3c0243eceae1@p183> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759458039378605460?= X-GMAIL-MSGID: =?utf-8?q?1759458039378605460?= Empty line after legend is waste, use it for config options. Signed-off-by: Alexey Dobriyan --- scripts/kconfig/lxdialog/menubox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/scripts/kconfig/lxdialog/menubox.c +++ b/scripts/kconfig/lxdialog/menubox.c @@ -185,7 +185,7 @@ int dialog_menu(const char *title, const char *prompt, height -= 2; width -= 5; - menu_height = height - 10; + menu_height = height - 9; max_choice = MIN(menu_height, item_count());