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=-6.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28606 invoked from network); 27 Aug 2023 15:37:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Aug 2023 15:37:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1693150638; b=JjVqZ41denFGfUFjsgQDCd4lNBK4c8e4mH5NJMzANpW77AOc0Fywfe9Vf2YnlV3MiY83YBRc+H rAOsecRkNJapQKQ/0L+hXuKb0cR5wyipVq8GhkQB70bwsZ3mtu09l1/eGqjEKXeA7DjFevw9a1 9L3zMmM1+YpC9hRk4ymsF8sH4ygu05qDUcudjTkb5dx2h+q1x3hNuBxZumhekjTIlorbIyFL+/ nTjixgVp7yvKyalx1t8ZzQaNmSZKki3bxJM7aLCSTi9WWawrUYO5E/Lp9pLYT3hidbKNwxIcMi WmmtwlUot9aAJW39sZCICGH3WMCYck/cVACdoJTAit1vGg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (tncsrv06.tnetconsulting.net) smtp.remote-ip=45.33.28.24; dkim=pass header.d=tnetconsulting.net header.s=2019 header.a=rsa-sha256; dmarc=pass header.from=tnetconsulting.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1693150638; bh=JYebmcTza1rXbAzEcrUmX5i8EeoibKU4upFVqpeu8zI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=MZz5SZJWkPXZr3urApDZRODuaRJAwLQhPAvMk3ao1P/04i/zROpfZ9zrvBUv0shIwE+2ROHCG9 6dyjLQOND63ZYELr+sh+661MZ4BAweG3fSHejiF+75G9/cEfo5f3rLe07AXYLETzxiLvzwoEV/ sQPoJ8srTJR3E++a56sam7nKA0Rltv4/RTwfIB4T7IVJkKk4q8a2LxIvOte+48Yf6SHYeKczaq 0cVCsHGNaEjroLpRAz8WYY7TGSvsKWFKC9es7fNUxoLlSSgsfAzN64oJE2YCjp1w6qnQcKemle APluwUXFCIz3EyQd4ahr0iYVhDPNHIu6Ecv2CdKWXQ21Qw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=J71bEZsHntRFXPoEPm1h4dly9i3m4Rrx7YwU3uAEcL8=; b=VvZmt2GYHvLwVYSMOZCi1yJygk IeyKVimufS/IVzRO5vh955xlYRFwBgXAYjth9oMdkTShAduCnxqMV8FBhg3OEnFr8VTq8S1gOW22u 1vNkWdeHuih3rUo65iCNqF0ziUW3Vz/EPnOLubWC/SGChXjIBJtKhHHqdB9cQOLJmowK5yP24hoYf Xq0KLFtvYraY8p5NvqDDpvG1+a6IMHdJ38AUXtpRq2hnb0ek2HXR+WFnSCuyO1m6BqR5XpVKqOzCL 2foQlwzdXqjLRv/1u7jSPvBNrQ5Lxuiai2jDZAey80+0OZNm4trlB6g3xqCFdNxwDgBpqDYwGeUEr +woOcbOg==; Received: by zero.zsh.org with local id 1qaHpE-0002ye-To; Sun, 27 Aug 2023 15:37:16 +0000 Authentication-Results: zsh.org; iprev=pass (tncsrv06.tnetconsulting.net) smtp.remote-ip=45.33.28.24; dkim=pass header.d=tnetconsulting.net header.s=2019 header.a=rsa-sha256; dmarc=pass header.from=tnetconsulting.net; arc=none Received: from tncsrv06.tnetconsulting.net ([45.33.28.24]:34032) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1qaHoR-0002F0-UP; Sun, 27 Aug 2023 15:36:36 +0000 Received: from Contact-TNet-Consulting-Abuse-for-assistance by tncsrv06.tnetconsulting.net (8.15.2/8.15.2/Debian-3) with ESMTPSA id 37RFaP3M025220 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 27 Aug 2023 10:36:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tnetconsulting.net; s=2019; t=1693150586; bh=J71bEZsHntRFXPoEPm1h4dly9i3m4Rrx7YwU3uAEcL8=; h=Message-ID:Date:MIME-Version:User-Agent:Subject:Content-Language: To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:Cc:Content-Disposition:Content-Language: Content-Transfer-Encoding:Content-Type:Date:From:In-Reply-To: Message-ID:MIME-Version:References:Reply-To:Resent-Date: Resent-From:Resent-To:Resent-Cc:Sender:Subject:To:User-Agent; b=AQ0zDWC0cquiZdj60sRnORw21Sn9fpidkPx1kg7a/DW2dIsT7O38Am2yl1fko2ZTk brV3UjGl135IaLP6KRW7zacM9rLJwB+jdYUoYuIBTDdYe175Yh3R7+gSEnKQutodhh TFoL9hFRmSS5deuysWhY+nEbFibH+7rd1xE5XKG0= Message-ID: <6fc464c1-1128-0747-1536-9065a60ced6e@tnetconsulting.net> Date: Sun, 27 Aug 2023 10:36:17 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: Why does zsh clear to end-of-screen after prompt? Content-Language: en-US To: zsh-users@zsh.org References: From: Grant Taylor In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Seq: 29212 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: On 8/27/23 3:34 AM, Roman Perepelitsa wrote: > An alternative solution is to embed the info in PROMPT. In order to > avoid wasting 20 lines of the TTY real estate on each command, you can > automatically contract the prompt before executing each command. Thus, > if you run `pwd` twice in a row, your TTY might look like this: > > me@box ~ % pwd > /home/me > me@box ~ % pwd > /home/me > > foo=bar > baz=qux > me@box ~ % █ > > In this approach the extra info ("foo=bar", etc.) is always displayed > right above the current prompt. This is basically Transient Prompt > from Powerlevel10k > (https://raw.githubusercontent.com/romkatv/powerlevel10k-media/master/transient-prompt.gif) > but with a fatter prompt. This looks like it might do something I've been contemplating doing. Having a prompt that is multiple lines but not taking up that screen real estate in history. I need to reverse engineer this and adapt it to what I want to do. I'd simply like a multi-line prompt that includes: - A separation line from the rest of the screen, blank or repeating sequence is fine. - A line that includes path and similar things. - The actual command entry line. I already have transient RPROMPT. Time to read & understand what is happening. :-) Grant. . . .