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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30663 invoked from network); 18 Dec 2020 02:26:23 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Dec 2020 02:26:23 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1608258383; b=uJzToGwi33hPim2wnA4+ehqyjoHMKYZmhakn3SqRWSoWwEuTV4QAtX8FsujNiIGVCgtrsbbd8t oEeMYZIZ/2FnFgKiC71eiGno7ucCkyqD7OpUpMmnPj2XNSZaUzAoK+7Bfl0+pVSU8SO5sk2hhv o36HPLKTuDStlH3RRffanc4Og1kx9bMysIZ6vUeZZMMPPiVWTgRVFRtmAkCz/+7F+N9h1Eq+/L Wb84XXSNOQqrNj+ccpR4FROg5ul/BgXPRBBNkHD2MfwSTf5LGYGzcL3m99wA6VJo6kYlm1ojLc MkP8Fq4pvPYt0obneEcEksF/+6yIuYvj3kd3OUe33Cy+Hg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out02.mta.xmission.com) smtp.remote-ip=166.70.13.232; dmarc=none header.from=eseth.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1608258383; bh=brxJWJea/Swf+UO2EPRRkA3tbya9UD2ysyGDbpp/xnY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Subject:Content-Type:MIME-Version:Message-ID:To:From:Date: DKIM-Signature; b=Eq8TCB12cLesRuu9/vrOTsm9RSxGbSCyO4koMIGD2i/w5ALaXavc7LZLlmwfqyJq4Uv5Q7ceIU 5KGgR5qlo9of58tR9g7tfsFa4dog5rVjae102lFmIFxGaU4rwSzfYfgSzTX+Ny2NfkDWILX4tD nD/MmvvQIanze3MlEXnX8cNXb8+gju6Ssegk/wVeS0YFbYcIw9RXiw76tCVIYfo4kvfUBxp3L2 uOyvbxl5J/MP6+4hthYb5eZSk0p4YFkA8jakUUls6vdoTYxW8pAs6V+jSJPu/tvqLit1h2Rn/9 mfrsFhok5j63vm3xtSCqRAMpyZrAxBNTErPpEir5Qax0+A==; 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:Subject:Content-Type:MIME-Version: Message-ID:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=brxJWJea/Swf+UO2EPRRkA3tbya9UD2ysyGDbpp/xnY=; b=X++UEPxtkofZqk+PTVtIT60vsY RXkMehWEEzElvgkDTruKQN+cgTSosyDI2daL+rlWXx0IxvtLOPpbl8kSEm9gyOdIw5aaq6zmBlZUS Y1EimYTwY79q0+SGLdsj6PgfPh1OI//yUkaEGLi117XEPECkHe16yATF+e26oWgu1elO9idpfsAJp 1MhTXLI3GbGZuXAowXFY5ShIU801xMNLPkF+Lu7uFzznJz2IOoVG+5Yw89GOI/RMqrxNnUrHvO6zF L6SJWrJm+cnz13sqhbeHUqFsAq/6Jb0+68R9/zxV8xotWiAnTVYpjC4cia4yyZYaw/wgIzjfBe7Qk 1845smNw==; Received: from authenticated user by zero.zsh.org with local id 1kq5TH-000D8c-Io; Fri, 18 Dec 2020 02:26:19 +0000 Authentication-Results: zsh.org; iprev=pass (out02.mta.xmission.com) smtp.remote-ip=166.70.13.232; dmarc=none header.from=eseth.com; arc=none Received: from out02.mta.xmission.com ([166.70.13.232]:56008) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1kq5Sl-000Clo-Ev; Fri, 18 Dec 2020 02:25:48 +0000 Received: from in01.mta.xmission.com ([166.70.13.51]) by out02.mta.xmission.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1kq5Sj-000QoP-At for zsh-users@zsh.org; Thu, 17 Dec 2020 19:25:45 -0700 Received: from mta5.zcs.xmission.com ([166.70.13.69]) by in01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1kq5Sh-00058e-NM for zsh-users@zsh.org; Thu, 17 Dec 2020 19:25:45 -0700 Received: from localhost (localhost [127.0.0.1]) by mta5.zcs.xmission.com (Postfix) with ESMTP id 96F0C1280F69 for ; Thu, 17 Dec 2020 19:25:43 -0700 (MST) X-Amavis-Modified: Mail body modified (using disclaimer) - mta5.zcs.xmission.com Received: from mta5.zcs.xmission.com ([127.0.0.1]) by localhost (mta5.zcs.xmission.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9n2-UeR9iAaN for ; Thu, 17 Dec 2020 19:25:43 -0700 (MST) Received: from ellen (unknown [139.60.10.209]) by mta5.zcs.xmission.com (Postfix) with ESMTPSA id 28C111280F66 for ; Thu, 17 Dec 2020 19:25:43 -0700 (MST) Date: Thu, 17 Dec 2020 19:25:40 -0700 From: Seth House To: zsh-users@zsh.org Message-ID: <2125772511.25490373.1608257220571.JavaMail.zimbra@eseth.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-XM-SPF: eid=1kq5Sh-00058e-NM;;;mid=<2125772511.25490373.1608257220571.JavaMail.zimbra@eseth.com>;;;hst=in01.mta.xmission.com;;;ip=166.70.13.69;;;frm=seth@eseth.com;;;spf=none X-SA-Exim-Connect-IP: 166.70.13.69 X-SA-Exim-Mail-From: seth@eseth.com Subject: Cursor save/restore is redrawing over existing output X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) X-Seq: 26231 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: Hello. I'm seeing Zsh behavior I was hoping someone could shed some light on. When I save the cursor position, then output something, and then restore the cursor position the text that was output is redrawn over (blanked). To reproduce: % exec zsh -d -f % printf '\e[s' % printf 'Hello, world\n' Hello, world % printf '\e[u' Everything prints as expected until the final printf. After that the cursor does indeed move, however everything below the first printf is erased. In contrast with Bash and Busybox sh the cursor position moves but the contents of the terminal are not changed. Is this intended behavior or am I missing something else? Using xterm on Fedora. % zsh --version zsh 5.8 (x86_64-redhat-linux-gnu)