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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21143 invoked from network); 18 Sep 2023 23:15:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Sep 2023 23:15:18 -0000 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:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:cc:Reply-To: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=jrbug7HxMMjWDg46fSPARUd/o/B3pklytcpaKPFB1PM=; b=XHnf2oCELkDTUSO3xZz88cr6n7 cmjkf5nNxc99lECXE9iLFAv9oIdmt2xKCvUPHZN7BzSpzTuAilvJ+BdFr18gqGZNND1CyJxaFnoym oLU756xWDAbTiltxZXaIAUZGA0sFb1khLZ1dax4T7SUIN7mmXNmdotucqUbvdBg+r5eUFdyUpdHX7 mxnBEB5LY3MYbLE9hNKahVO2o+/4da2rDgEhr683/nIVMan9UUhJTjsgL5RooICJp7wcymeESyqzc NaAMAmto5QDqsucZj32vDRL3PKUVQrFgjGjhLhPM/EYZTi/egXSR4B9PfFWvCw6cYxecFtWWAEG30 S4odgUxQ==; Received: by zero.zsh.org with local id 1qiNSW-000GW0-NH; Mon, 18 Sep 2023 23:15:16 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1qiNRy-000GDC-9O; Mon, 18 Sep 2023 23:14:42 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.95) (envelope-from ) id 1qiNRx-00065I-Da; Tue, 19 Sep 2023 01:14:41 +0200 cc: zsh-workers@zsh.org In-reply-to: From: Oliver Kiddle References: To: Bart Schaefer Subject: Re: Why does zsh clear to end-of-screen after prompt? MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23390.1695078881.1@hydra> Date: Tue, 19 Sep 2023 01:14:41 +0200 Message-ID: <23391-1695078881.417127@hXqK.BiYQ.sk8c> X-Seq: 52159 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: [ moved to -workers ] On 9 Sep, Bart Schaefer wrote: > How about this, then? I'd completely forgotten about "zle -T" ... > > no_clr_eos () { > emulate -L zsh > if [[ $1 == cd ]] > then > REPLY="" > elif [[ -n $2 ]] > then > REPLY=$(echotc "$@") > else > REPLY=$termcap[$1] > fi > } The last 6 lines just restore what would be the default behaviour, right? Wouldn't it perhaps be helpful if there was an explicit way to fallback to the default such as by returning an error status. The feature is mostly only used by the test suite to my knowledge. I think I once used the feature to send the parameters to a separate terminal for debug purposes and could have done with it also keeping the defaults for that use-case too. Oliver