From patchwork Tue Jul 24 20:12:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Poirier X-Patchwork-Id: 1233041 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 1AEE74025F for ; Tue, 24 Jul 2012 20:13:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932098Ab2GXUMs (ORCPT ); Tue, 24 Jul 2012 16:12:48 -0400 Received: from mail-gg0-f174.google.com ([209.85.161.174]:46548 "EHLO mail-gg0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932075Ab2GXUMU (ORCPT ); Tue, 24 Jul 2012 16:12:20 -0400 Received: by mail-gg0-f174.google.com with SMTP id u4so7128054ggl.19 for ; Tue, 24 Jul 2012 13:12:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=Ly6v/noNgp3fH7rhQlMhOCO9+7SI/98iYu8gOtkPD7s=; b=Ndl45UIHnW+CnUPqDbYLJgxUVeHW65V17g5EpO07qUjPGfcsc7AynAdr7OC9RD0FXA jcNDtK+jNpc1VRpY1A/GIu5II+HjbS4O9CThaBpxL3FF0Ao1atp15eH9sjyARa73aG2P JQovZqA3EbRZzn9yKuJvsi9v6UQxvAXBia8xbY/sKfmeVfy0RXucTykxiWIe2ylTe2IM wwdgU1PK5Z+wnBydB+p5LHvgFCdrQGn6UEcRZjQ+u/ax5+CPJWRJPr+MDbGbKvUTF4t9 UHPV5MUQffgxU1BUrs6ncX9YEtJLQ4SJU1ZDVHeMX4DpvBGu1Oc/pDZb2iFm33WsUSJG bMcA== Received: by 10.42.80.6 with SMTP id t6mr17954513ick.15.1343160739868; Tue, 24 Jul 2012 13:12:19 -0700 (PDT) Received: from localhost.localdomain (modemcable118.38-22-96.mc.videotron.ca. [96.22.38.118]) by mx.google.com with ESMTPS id dw5sm2805587igc.6.2012.07.24.13.12.17 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jul 2012 13:12:18 -0700 (PDT) From: Benjamin Poirier To: Michal Marek Cc: Lucas De Marchi , Arnaud Lacombe , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Randy Dunlap Subject: [PATCH v2 1/2] menuconfig: add u, d, q command keys in text boxes Date: Tue, 24 Jul 2012 16:12:02 -0400 Message-Id: <1343160723-14308-1-git-send-email-bpoirier@suse.de> X-Mailer: git-send-email 1.7.7 In-Reply-To: <500EDDAF.4040506@xenotime.net> References: <500EDDAF.4040506@xenotime.net> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org They function just like they do in less(1). Signed-off-by: Benjamin Poirier --- scripts/kconfig/lxdialog/textbox.c | 3 +++ scripts/kconfig/mconf.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/kconfig/lxdialog/textbox.c b/scripts/kconfig/lxdialog/textbox.c index 154c2dd..4e5de60 100644 --- a/scripts/kconfig/lxdialog/textbox.c +++ b/scripts/kconfig/lxdialog/textbox.c @@ -129,6 +129,7 @@ do_resize: case 'e': case 'X': case 'x': + case 'q': delwin(box); delwin(dialog); return 0; @@ -190,6 +191,7 @@ do_resize: break; case 'B': /* Previous page */ case 'b': + case 'u': case KEY_PPAGE: if (begin_reached) break; @@ -214,6 +216,7 @@ do_resize: break; case KEY_NPAGE: /* Next page */ case ' ': + case 'd': if (end_reached) break; diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index f606738..f584a28 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -105,10 +105,10 @@ static const char mconf_readme[] = N_( "Text Box (Help Window)\n" "--------\n" "o Use the cursor keys to scroll up/down/left/right. The VI editor\n" -" keys h,j,k,l function here as do and for those\n" -" who are familiar with less and lynx.\n" +" keys h,j,k,l function here as do , , and for \n" +" those who are familiar with less and lynx.\n" "\n" -"o Press , , or to exit.\n" +"o Press , , , or to exit.\n" "\n" "\n" "Alternate Configuration Files\n"