From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by ewsd; Thu Dec 13 05:44:54 EST 2018 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 4F94722257 for <9front@9front.org>; Thu, 13 Dec 2018 05:44:51 -0500 (EST) Received: from web2 ([10.202.2.212]) by compute1.internal (MEProxy); Thu, 13 Dec 2018 05:44:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:references:subject:in-reply-to:date; s=fm1; bh=uks hqwe0SY1/zvBMRseCsCa2NpDAn0YeoCJRSX97Zek=; b=pT8TZZkJZVw2kfgoPRs 8oQtwrpgHbyw2tKUhhpsUm+maqNVa6KXAWc+b6HlYrdkZFRR9PPhqusDRx+Pgia7 gSSpaBSxu4aLDCoUU6nMqsRp9Opa7JL7bv8tffd83z9TaUMRMMcQbiJMGEmUa2Ae sXOE4rpBX9j4Z6N+z0YHfvJkfcvlkmq9/hoKGXhbVpF+3/gUdVcjvQZeZr4ix1BL y6IjzSKVtmzz0Ii/PPEYfBTWMJk5O7WetO4eTExTBbb2gOBCus7j01jM2vrO96Xj 4EbBYikXtNTzapIt6LKR8QBE+abiAokyZOJd0J68TkLd1npcoxgPRjBz5k6dN4j8 a6g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=ukshqwe0SY1/zvBMRseCsCa2NpDAn0YeoCJRSX97Z ek=; b=JDRKyRmgrkiePfmfyZe27JBIt050JljXNrba8hsaTM0nYgyLPssuY0JRE BBpGIBM3F4alNu3PyKi1fEPOXki/fF2PaI9ywq1FwYEfSvVga9EGAS+52KwbK5et sAxxkeNc7zlRiUuRGq6sz3lnnX2azpZLJdQ2RZYYOHBFqEJ3JJOlQOiuvQdgOKKa 76+k3e/yg6oKJaW8p/bVMslupyh494ZZJ0it3X14ny2ow3rg4w8TyTppx7wL3RDR WbktGC57w1ny3XtAeyw85Cw0GTLRAo+n5aCagtXIsSepr+sFnkTumkx9kZ3qn2yW 8r65wkhZqkCpX1CoqHiOau8ouJQFA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudehvddgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecunecujfgurhepkffhvfgggfgtofhfufgjffesthejredtredtjeenucfhrhhomh epgfhthhgrnhcuifgrrhguvghnvghruceovggvkhgvvgehjeesfhgrshhtmhgrihhlrdhf mheqnecurfgrrhgrmhepmhgrihhlfhhrohhmpegvvghkvggvheejsehfrghsthhmrghilh drfhhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 206986229D; Thu, 13 Dec 2018 05:44:51 -0500 (EST) Message-Id: <1544697891.1467468.1608010192.29B00C0C@webmail.messagingengine.com> From: Ethan Gardener To: 9front@9front.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-2f590f9a References: Subject: Re: [9front] rio exit menu In-Reply-To: Date: Thu, 13 Dec 2018 10:44:51 +0000 List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: content-addressed social CSS framework More complete patch, only because it turned up as a preliminary to what I intended to do. I can't post it on my contrib now although I do think that's the best place for such patches. I'm too stressed to look up how. diff -c /sys/src/cmd/rio/rio.c rio_exit_conf/rio.c /sys/src/cmd/rio/rio.c:52,57 - rio_exit_conf/rio.c:52,58 Delete, Hide, Exit, + Hidden, }; enum /sys/src/cmd/rio/rio.c:81,88 - rio_exit_conf/rio.c:82,87 menu2str }; - int Hidden = Exit+1; - char *menu3str[100] = { [New] "New", [Reshape] "Resize", /sys/src/cmd/rio/rio.c:124,133 - rio_exit_conf/rio.c:123,128 Image *i; Rectangle r; - if(strstr(argv[0], ".out") == nil){ - menu3str[Exit] = nil; - Hidden--; - } initstr = nil; kbdin = nil; maxtab = 0; /sys/src/cmd/rio/rio.c:730,740 - rio_exit_conf/rio.c:725,732 hide(); break; case Exit: - if(Hidden > Exit){ - send(exitchan, nil); - break; - } - /* else fall through */ + send(exitchan, nil); + break; default: unhide(i); break;