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 19627 invoked from network); 18 Dec 2020 05:40:58 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Dec 2020 05:40:58 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1608270058; b=P9Y6wgXiJA6alvxKMx0gCYG9tAZys7Ha4+k9dP/N/YxteZpwqOPbVRgbnTZXBPjJn5oSWHCduu 2FLx1MIncdPvGerwf3iztCk7rQvm6pbYWGBLIHhysIEK0aK3jNRIkeuKtsbibP7HdmmuOrocxm 9h0HhLlb7oPYdxfi3q6auT8prA5ODskXfdcuJ/7zdZJ5HTXaif4YOuCIsMcALicztKj0KpB8iD PxmqMcyCfx9P+7/3CrANZhjowmyfxnxqJk+TxLS1HqWXyDtjlvzzF0QQf+aZqOwyq6mZI1gh46 QxsVpsEO7f2zppNZR2iql1qD+GL/L3PIw9kQkO46k7NQ7w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f174.google.com) smtp.remote-ip=209.85.167.174; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1608270058; bh=LV370ty2otwSdVfVF44MPD2y5V9g+dvKBTRIe3rK0qQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=ey+3I3YujaDq5YrB891rbQ3LSNtwxztpDIZiFDOyvmp4Z1qRpc5aUrzdd7iAhwTJmTkB8ICk3i LKC/Gpu1Mpfsfx2BLWpfbbQFMtn0PoMorPhjmDCdYl6eoS2OkRBSjh/v3uLLE9n3zDfGt2Vqd1 e9Q7DqKiGfht3s3/IW3rOi9JKa3tKpoLeMfeoFPiylL4dNxpW1qMRFgGgjZ5YXMUZg7+DbfBub x1TvEJ8QcE8NN+5nVqq8MYeEgZpnrvsqQ0NQq5UBR+DFGr2z2+GWssHUfbioUCLqrqGk/mrESw /qDi6tnM/LFVLfeqzRsjuXfLVohMvppBeYeQNs+DpVPDpA==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=LV370ty2otwSdVfVF44MPD2y5V9g+dvKBTRIe3rK0qQ=; b=FeGveKGVA/a5Gh0CK0n7lv9x+M SXkcAeXEsPUmpweWqx2fm67JhVykz8yZGR+gOeYSGLOB/6JIEBkRmE0CPs864m7ILrK1YT5ZpFj+h zcs02VINjiRYMRV3Jx0yogRQGmiBgtS6KH9NWL0X1dpw6fc0Gfe6p8r+TC44BH2Iwf+bfB5Lx5fcB 4mUzQK5ZhNKg4S0HZTK5vggtJQJiosMds8uKaSKsrW1E9YWIR3mRbAf3WbbSLulDuI22jn4G1g6mJ gAGsiGunz+cCdmvEbxlKGpD1VmKu5x5gQ29nUTjV9qGk2R0QT44nVQL/ACJOoqvw4tKwPjFQp9kin i99SCZhg==; Received: from authenticated user by zero.zsh.org with local id 1kq8Vb-000JKz-2P; Fri, 18 Dec 2020 05:40:55 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f174.google.com) smtp.remote-ip=209.85.167.174; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oi1-f174.google.com ([209.85.167.174]:37062) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kq8V7-000Iy1-OA; Fri, 18 Dec 2020 05:40:27 +0000 Received: by mail-oi1-f174.google.com with SMTP id l207so1680679oib.4 for ; Thu, 17 Dec 2020 21:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LV370ty2otwSdVfVF44MPD2y5V9g+dvKBTRIe3rK0qQ=; b=irsOkHigYIFiNKy4mQhVr9hqKxg3u4toILrg4QbTIAL0XbJoMxKWyuxlJQK+Xs8vMT qwQB1BPi+opBJ5deZ9TRLBxlqxrehRZIxdm4SWplbwatwv6XZr4wdeihETJbEvmcdxzL y6SUGUfn4XLTLqeV4j/IuAz6IIhOOGv400oPuoYNDjNFMVSZObky/cW5fJ+ZG/8jwsg0 jZI6xfYgzAAak0cUlx47nHG8zhi7CxrK0ISNl15aG8QxBZNecrSqJl1i9gzTCOrp5FBg 2Oloj/Px3ai64cy5tf/JwrRfjN9NjxF4iDvZpsaUb/0tGIE639euo1XEsD42gWjhyrjx 8b5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LV370ty2otwSdVfVF44MPD2y5V9g+dvKBTRIe3rK0qQ=; b=mC+Iq5IwpsH3fUAohA0mTwA45Ot9JEw0UVgHshY1aN0U7sMko9rc00JcZiZHwBbgox +l5GWgtkgiE/23TtHKeA8F/JDz9cslhHz+t9zcdIxul6pZoPp54DGKUMCxfwFOwuMcIn 1B+T/TLvkTneCi8Bo2LIzetLIdhAuBbj2UjzwxDXTf3awYbs9z0suVxLi9e0sdHT/w6h 5Z9lkzBUWa6EJHiAbhWY2/IBEDbHNiAfgDqU8fl01KtL7F/uQEzkwV9KZPmRE4xV51CK FWIjDen5p3nvfkO2hLEfi0MzjHMeHxHEQH/LUDHslcT+pKvDPpOUTlYAhP+Oj1/JOFVI 0zoA== X-Gm-Message-State: AOAM531HXE2yQNoACPetJluHYXCRx1yCn9qJuAdLgMJ8vQGZdQX3TmUJ i5N9r1i8E82oFjsDZxE5hCKlVPJQu7OfD79LbniIi4rFI+Q= X-Google-Smtp-Source: ABdhPJxodRVgRTX5943rdeot9TSY2h8EstIYJep7U51fbIdNcUFRHcUyoE1Gunn1TFzgevVKHjC+UTiDjICvD5zMT6M= X-Received: by 2002:aca:bd45:: with SMTP id n66mr1778025oif.132.1608270024709; Thu, 17 Dec 2020 21:40:24 -0800 (PST) MIME-Version: 1.0 References: <2125772511.25490373.1608257220571.JavaMail.zimbra@eseth.com> In-Reply-To: <2125772511.25490373.1608257220571.JavaMail.zimbra@eseth.com> From: Bart Schaefer Date: Thu, 17 Dec 2020 21:40:12 -0800 Message-ID: Subject: Re: Cursor save/restore is redrawing over existing output To: Seth House Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26232 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: On Thu, Dec 17, 2020 at 6:25 PM Seth House wrote: > > Everything prints as expected until the final printf. After that the > cursor does indeed move, however everything below the first printf is > erased. The ZLE editor presumes that the prompt is always printed at the bottom of any output and clears the screen so that there's nothing to interfere with completion listings and other messages that the editor may want to display below that prompt. Depending on why you're attempting to save and restore the cursor, there may be a ZLE-compatible way to accomplish what you want.