From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 7978 invoked from network); 5 Apr 2020 15:01:15 -0000 Received-SPF: pass (primenet.com.au: domain of zsh.org designates 203.24.36.2 as permitted sender) receiver=inbox.vuxu.org; client-ip=203.24.36.2 envelope-from= Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with UTF8ESMTPZ; 5 Apr 2020 15:01:15 -0000 Received: (qmail 1805 invoked by alias); 5 Apr 2020 15:01:05 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24738 Received: (qmail 25123 invoked by uid 1010); 5 Apr 2020 15:01:05 -0000 X-Qmail-Scanner-Diagnostics: from 1.smtp.34sp.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25771. spamassassin: 3.4.4. Clear:RC:0(46.183.9.64):SA:0(-1.9/5.0):. Processed in 4.262231 secs); 05 Apr 2020 15:01:05 -0000 X-Envelope-From: dave@tty1.uk X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at tty1.uk does not designate permitted sender hosts) Date: Sun, 5 Apr 2020 16:00:12 +0100 From: Dave Woodfall To: zsh-users@zsh.org Subject: Re: Is it possible to limit the height or rows of menus? Message-ID: <20200405150012.GD32510@blackswan.r0t.uk> Mail-Followup-To: zsh-users@zsh.org References: <20200405143846.GC32510@blackswan.r0t.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200405143846.GC32510@blackswan.r0t.uk> X-Authenticated-As: dave@unrealize.co.uk X-OriginalSMTPIP: 82.40.94.2 X-34spcom-MailScanner-Information: Please contact the ISP for more information X-34spcom-MailScanner-ID: 83CF41480048.A43AC X-34spcom-MailScanner: Found to be clean X-34spcom-MailScanner-SpamCheck: not spam, SpamAssassin (score=-10, required 6.5, autolearn=disabled, X34SP_OVERRIDE -10.00) X-34spcom-MailScanner-From: dave@tty1.uk On 2020-04-05 15:38, Dave Woodfall put forth the proposition: > zsh 5.6.2 > > When using menu select with a command that has many options, all rows > in the terminal may be filled, and the context is lost (i.e. any > previous commands and their output disappear past the top of the > terminal, so needing to scroll back up to see them.) > > What I would like to do is limit the number of rows. > > I tried doing something like: > > LINES=10 grep - And typically, after asking a question we find the solution ourselves. I defined a custom function that contains: LINES=15 zle complete-word It seems to work so far.