Received: by 10.192.165.148 with SMTP id m20csp5264622imm; Tue, 1 May 2018 11:53:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr8C0jI//rFj34Qyo6yTqD4viI/gPBCV0PVea0kgrU5oqLC1LUUX5U+UITEPGrLkx5uelTn X-Received: by 2002:a17:902:228:: with SMTP id 37-v6mr17040417plc.141.1525200825752; Tue, 01 May 2018 11:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525200825; cv=none; d=google.com; s=arc-20160816; b=vSK8wCIs+Vud591L/28eBrWXVuf1WdG6C7DNw7clXHw1/7eE8QL0o/o29jhov1WFNR 7Y1cqX2kXz0qSfmESVXmrRAhXiOlnoQ9KezrVxS5aw/1LYSdiePmx+BNz1vZmHEl1ajY 2J6Wwr2+62A349PwfoFf4wPU/oEVlyETJ9PW0viCS2sNWnoJWtBjsXxPcGv7wBLSqGKa 35v1N+y2btecc0iNjWE82i/pNqKzW0pVYoq39acwnFEY8E9NbdPLqGRB4i/Oay61rpRG E7TeWV6ZOC76S41CUWk1wVxPjVWR/8/jRvDvNaN2tiwM09+DDcGX3GjI4GzZF1vP5H5s qBKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature :arc-authentication-results; bh=CSwVgHZ43roKvMWkSPotJkJ6mZTn3o36YLafysLzOxw=; b=cZ+ftTu2hjpID9SKkV7C8vEsR2kLze+0koOtJQATq+bMTujRqQ/BU7WKLRsJTMMt3C Z497UGqoT/AI+j5xPbhSLR5mVVpMF1l1hd8id01kIH4I9shyBOHUuJ0rH3AdZvmV1Ezz az69Egv7UXUoylZADbGQJnHdxWTVsMuoE+kCbw+friVrTgmcvUnOk6rw5mUSPz7gcmeq nlXO2CG4eFNwHYL3iv8Y+LXq9goDk2CKdcZoV8yxyH7tP7WWpa7Iw9i27WPt4VEgV5eh km+jpAQMrelNSBHjCZAriXC92LfOJJodsfyNnW+i/IcYlA6Bt5i3mlillj/ZHJn+zKVl 134w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Fp5EqpbL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l184-v6si8501744pgl.38.2018.05.01.11.53.31; Tue, 01 May 2018 11:53:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Fp5EqpbL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756557AbeEASwN (ORCPT + 99 others); Tue, 1 May 2018 14:52:13 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42714 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756382AbeEASwM (ORCPT ); Tue, 1 May 2018 14:52:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Subject:Sender:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CSwVgHZ43roKvMWkSPotJkJ6mZTn3o36YLafysLzOxw=; b=Fp5EqpbL9SQdagCc3Snf9/eB1 2BqgN6kqC4o2URi7kBkChhk7Z09+jZ5+AKxzsg5WUUAC2+JsUCbRN/uL+Cyj0iEeAFBpbip4HGFyp Eh8ggEI4jq62cylWfgDFxlPSgr1mO+2X/9SHriH7OxrYArp8qaf5gi0N1RywiMi09uXzui7gABWCB mTjswB95ZfMMvhNC+CCMFl0dwKC7/HW48AS049HHcDAi14Lun093I/mWz3jxao8Ex2uBmTrDSdB1I UlFM0By1ZyHZtYNan8+el6wbhTjqHGX/k6KpxK03UhaljiaPO5RMH2fc6XYpjBEkBCBjrHFmcXXlL m6oUNMLtQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fDaNn-0004mz-GB; Tue, 01 May 2018 18:52:11 +0000 Subject: Re: [ANNOUNCE] Kconfiglib menuconfig implementation To: Ulf Magnusson , Linux Kbuild mailing list , Linux Kernel Mailing List References: <25f6b309-9346-7e28-beeb-a37e69a91ce8@infradead.org> From: Randy Dunlap Message-ID: Date: Tue, 1 May 2018 11:52:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <25f6b309-9346-7e28-beeb-a37e69a91ce8@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/01/2018 11:13 AM, Randy Dunlap wrote: > On 05/01/2018 10:56 AM, Randy Dunlap wrote: >> On 04/30/2018 05:57 PM, Ulf Magnusson wrote: >>> Hello, >>> >>> Kconfiglib (https://github.com/ulfalizer/Kconfiglib) now has a >>> terminal menuconfig implementation, implemented in plain curses >>> (which is in the Python standard library). >>> >>> The interface should feel familiar to people used to mconf. It has >>> some features that mconf lacks: >>> >>> - Seamless resizing >>> >>> - Unicode support >>> >>> - Runs on Windows (via 'pip install windows-curses', which uses >>> PDCurses) >>> >>> - Improved information displays: >>> >>> * All expressions are split into readable chunks >>> >>> * Menus and comments have information displays >>> >>> - Relatively easy-to-read and easy-to-tweak code. >>> >>> Kconfiglib automatically invalidates symbols as needed, and >>> values can never get stale, which helps. >>> >>> Some upcoming features are mouse support and a search feature that >>> can jump directly to the definition of a symbol. The jump-to feature >>> will use a "show-all" mode in case the symbol isn't visible. >>> >>> See the Kconfiglib GitHub page for screenshots. The menuconfig >>> implementation is at >>> https://github.com/ulfalizer/Kconfiglib/blob/master/menuconfig.py. >>> The docstring at the top has some more information. >> >> Hi, >> >> I'm probably missing some python additive (I hope it's that easy), but >> menuconfig.py is not liking the "degree" symbol in drivers/net/can/peak_canfd/Kconfig: >> >> config CAN_PEAK_PCIEFD >> depends on PCI >> tristate "PEAK-System PCAN-PCIe FD cards" >> ---help--- >> This driver adds support for the PEAK-System PCI Express FD >> CAN-FD cards family. >> These 1x or 2x CAN-FD channels cards offer CAN 2.0 a/b as well as >> CAN-FD access to the CAN bus. Besides the nominal bitrate of up to >> 1 Mbit/s, the data bytes of CAN-FD frames can be transmitted with >> up to 12 Mbit/s. A galvanic isolation of the CAN ports protects the >> electronics of the card and the respective computer against >> disturbances of up to 500 Volts. The PCAN-PCI Express FD can be >> operated with ambient temperatures in a range of -40 to +85 °C. >> >> >> kconfiglib.KconfigSyntaxError: >> Malformed ascii in drivers/net/can/peak_canfd/Kconfig >> Context: b't temperatures in a range of -40 to +85 \xc2\xb0C.\n' >> Problematic data: b'\xc2' >> Reason: ordinal not in range(128) > > BTW, after modifying 4 other instances of this "error," I have it running. > Now looking/testing. :) Hi Ulf, Here are a few comments for you FWIW. menuconfig.py uses the terminal window space better than menuconfig: fewer margins, less Help text so more usable lines. ESC/q is nicer than in ESC+ESC in menuconfig. What is the lower colored line for? I don't see it being used. On Quit, don't need to prompt for Save when the file is already saved or has not been modified. When menuconfig displays the Kconfig menu tree and it is over term-width characters, it truncates on the left so that the user can see all of the current menu name. menuconfig.py truncates on the right so that the current menu name may be partially lost or totally lost. To enable=y a tristate symbol, cannot enter Y, must do Space Space to cycle from N to M to Y. No / symbol search. I use that a lot, but I don't claim to be a typical user. Thanks. -- ~Randy