From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32536 invoked from network); 21 Dec 2020 12:23:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Dec 2020 12:23:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1608553400; b=FyU0pEpbXuQugT2jFeBam2P+OBKfsWO0eT8oBmTO7tNvVKOwkL7ICvYYkYg2dW0eYzSIlwx4ik 3GvKip4RUdQ/uhNOyR+Wq+DLCvgy4quV91aoPa4S2cwBmKPXwEphkN6/OKYJKUsN75+YKpKRkx NEbAC3Fyhzldaa9sjLwz37r0oA7eauMZhJBuqkpiPiYqAglozRk3eTUbVnJ2OntyAEBgOLAHLd V1D18na3S5iVdgqG+82tY1axz2+2Kzn2l5l7n0nSu7KfKTcz50aAe0iILsKFUVBjiKlot06uzo TJDg9EwFUDrZBPZL2Xy/jfGlOulztqvibFoR1zk3l7a/LA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=luffy.cx header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=pass header.from=luffy.cx; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1608553400; bh=OV3NHiPvVRfbobmfcpP5JUmGnxWffHHHSixQ3mGlhbc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=wpl20VkGRXvBXAl1/usJnp9u3/QPVEKe8QmePNI8VNxS1I3zXiSYLHc6K5HkKsGhA5d4NUhR3K BxmOviNna9a2aAXPp265PtVlHWuFvHeKclhr+XC/4/fIYPhDwplL4kVljNBgr2P9giIBW0svSK 2mBTGOSHi6UXwVac3o273D7g//Ja9LEYVntzLjDycdF/i1WmJAY7RxmdjaTTKugBqNbRoi8ESm 7T4xN27w8ju6p9+/vdRnB+g8Tfrq+ceiT/JOdiwxlle5qSRz1I5fT9RmFgWaRVSzphTz1qsDVK 63BtcMAGBf/ghl4gFi6dW/kHhC/v7zVziB87IrbnxrTosA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=48qXXbEFXatQNRTInvjQr6sox9+1G3ECtGcv3Zb+4yQ=; b=mZO/q8haS4AomLkRYEciAW0a4d Ge3gLgp+6DgBDSw+AmlGe87EkI2hjb7xNRUAR5fsUT924JsaXjpUTUbXmPVchpqfec76ue1FFQYVs 3cQxZ+YO9Cr2WVS2E5yVnFcL32aUsIZ6OSOsUoB5b/DO5LAJrqd40HLeIWv1rwR/+pIGwlZB88Keh AOQsrCv49y7lS5EvN9tLkontfBEajwrhy3BwiO0k2u/f/q1zm2nVbbnYOipeIec0z4v+QKfMOCj7N zWqtb7Pu0hvtaGTdowU4gRvaVqoAUNfGUuexwic+zGP9Smsrwa5QBvSNDxuWDH/CyfN+RaKFiUQYa gIGdnPnw==; Received: from authenticated user by zero.zsh.org with local id 1krKDd-000IJM-Cy; Mon, 21 Dec 2020 12:23:17 +0000 Authentication-Results: zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=luffy.cx header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=pass header.from=luffy.cx; arc=none Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41393) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1krKD6-000HwG-Et; Mon, 21 Dec 2020 12:22:46 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id D782E5C0138; Mon, 21 Dec 2020 07:22:42 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 21 Dec 2020 07:22:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=luffy.cx; h=from :to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=fm2; bh= 48qXXbEFXatQNRTInvjQr6sox9+1G3ECtGcv3Zb+4yQ=; b=NYZI30PAx8Vj8AIm QGLLQIDDTVJ1kn8OP9AlxHyl+m+HtjiXrNIB6fQnZ1IhIsFEDROaR8Q27POKMNgd sU1XgqQXqwPWldt6WwZNm+1nGAHNo/1NOqWV6J8nICP1YwzsvYvNRMMs9DliJMSv 3BXpJARYD9s/MlulJz6TfW0BqySO4TxN6wMXz5tDbCJbR46nDHDbTY/Y/V5/yrnj gNL9m3s4FJmaFm9GwPmHbUnKAsXQorcsRPi251kyO3YYyfOAb+8N2cypYb/sy7QT +hXMKPNEk9r4j0jiZU1b291AqewoHGLFXHL7ptgOBplqjIDUHXUvUrhrIdkkiNSr hU3ITQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=48qXXbEFXatQNRTInvjQr6sox9+1G3ECtGcv3Zb+4 yQ=; b=qnapwS6LKOUJfBy2R5InYXiZ3pPC2npWYiT8pe+3Yt73rWq4Vz7mp9NoD tuF6HjjZNZyJJYii8dsHqh9RO4HkiqfzhMmGDYMNVQHIJkprfY+IuzczTp/oJzn+ DQTPhomPhnCqcRQMzBgb8uwCbGfPlf0m1J8GM57rJftIMa8+OQAJ7MOuoUwMUBlg P0X5N/ylX1P9OwdLbI6mAFItT7LUZXHz6NwcjR00P0ck/DqZZhNv36sO5qK4Y6XM fZpD1rF8VgIeAZ8IbI4k48r3qnbG77INeufLb5HotFYvD/wxqr/dW6Np334ksGXr QPmvcmWcAjwTnEM+hqUgqo2Vw47nw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtvddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomhepgghinhgt vghnthcuuegvrhhnrghtuceosggvrhhnrghtsehluhhffhihrdgtgieqnecuggftrfgrth htvghrnhepueevjefgfefggfeigfejtddtffehtedvleeivdeufeehlefgjeevffekfeel gfefnecukfhppeeltddrjeelrdduleelrddutddunecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepsggvrhhnrghtsehluhhffhihrdgtgi X-ME-Proxy: Received: from neo.luffy.cx (lfbn-idf1-1-1264-101.w90-79.abo.wanadoo.fr [90.79.199.101]) by mail.messagingengine.com (Postfix) with ESMTPA id 2AC6B24005B; Mon, 21 Dec 2020 07:22:42 -0500 (EST) Received: by neo.luffy.cx (Postfix, from userid 500) id A5714C8D; Mon, 21 Dec 2020 13:22:40 +0100 (CET) From: Vincent Bernat To: Bart Schaefer Cc: Zsh Users Subject: Re: Limiting height of completion menu References: <20201220144154.mwftaxagutsaystn@chazelas.org> Date: Mon, 21 Dec 2020 13:22:40 +0100 In-Reply-To: (Bart Schaefer's message of "Sun, 20 Dec 2020 13:55:45 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Seq: 26253 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: ❦ 20 décembre 2020 13:55 -08, Bart Schaefer: >> > half-lines () { >> > print -n $(tput sc) >> >> Or if tput is to cover the cases where zsh/terminfo is not >> included: >> >> tput sc > > That doesn't actually work as expected; for some reason running "tput" > directly from the current shell causes a zle reset and the bug > returns, probably due to some sort of handling of the forked job. > Hiding it in a $(...) subshell prevents that (but the whole > formulation still has other problems). Some completions also reset the state. File completion is working but for example, apt completion is resetting the state (maybe because there is some fork involved to grab the information). I may have better luck proposing a patch to Zsh to be able to have a maximum height for the completion menu. -- The lunatic, the lover, and the poet, Are of imagination all compact... -- Wm. Shakespeare, "A Midsummer Night's Dream"