From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id d48a45ac for ; Tue, 16 Jul 2019 00:02:44 +0000 (UTC) Received: (qmail 7103 invoked by alias); 16 Jul 2019 00:02:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44543 Received: (qmail 20829 invoked by uid 1010); 16 Jul 2019 00:02:39 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f174.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25510. spamassassin: 3.4.2. Clear:RC:0(209.85.208.174):SA:0(-1.9/5.0):. Processed in 2.125607 secs); 16 Jul 2019 00:02:39 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.174 as permitted sender) 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=Ujr0eeDa2eEzSmH3hIo4GpUKYNKzsAmOh7m+cI7U8uA=; b=RhpuLgDAQG7uEVzKpD1ZBpPG8OiMr5hTEVSpPehWx5XhMm7Y1m/wInyTKQM6crPAci bozTJOpIcU/m+iqLslfoSdgel5FJHi9TYlm57ha4TVFIqtwyQ22BXWihhgmfme+3WgFM Gaz84n2inwjMVdzSrE2b8gH+7ossjBkfrOFwn4/8plqTLSSMAlKEHMhTQDUJ7D/8V2lh 1Pf/D6Sw91kHEOO91/UjUHIkdQ7HnK10PB5BRHN6KtshNxapj5s75Yn56NZcCqOGz4JC yE0OnYVC+3iFSsETyuNFwkkDSOuBCEJXidWti6GplPa8xwHVEBX3S/2Sfr3jlD9e6+3B BxjA== 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=Ujr0eeDa2eEzSmH3hIo4GpUKYNKzsAmOh7m+cI7U8uA=; b=tGYefE8dtzrvpjg7O1Cp6G4BgIJHCrWY2l/+Q/ohF1AMHCD9ubtSYod6gE06aZ1LpD 5i0lZiLPfHzfeYTUJ4ZtRglrLaG2jX/b9BRt9ZwaUsN1JPuDcl1RALVmTIVfHHjjrOwD UmeUI6lsFcd2nolHRSiEFq/HDnPVyCqTNztLB+sEKNuLxxIMQ6z/JvRl8yOjOOda8xQQ IZ5l4ojkY2VNaPD90GzUu0lwbAfOBq5kl1Cp90iewr+3vf5IZ6u8sw7lAJo0zlxSaqUA ZYtDV4h24bG/gZc+QmenwpG0iLIFDI1wP+RP29iIQXrzXgOfBB1k9vIjwphG+dYdkRRJ voMg== X-Gm-Message-State: APjAAAXRW0oC5m2FDP3c/Anyua/1FP28XppQLSIPkKrjS1eytNwEBKxQ SVHar9HTNfOZbNc1QpkJ4GcvebrOLFZ2xMsmDxM= X-Google-Smtp-Source: APXvYqzLuSm+5gmaSBxPwBlLXOH9Wg3lY88feVhShAYHe8TpYTuHqcbGA+m8l/nWlGmDpqW/+SFpYFpZ93Ylqju0op8= X-Received: by 2002:a2e:2d12:: with SMTP id t18mr15935203ljt.175.1563235322518; Mon, 15 Jul 2019 17:02:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Mon, 15 Jul 2019 17:01:51 -0700 Message-ID: Subject: Re: PATCH: draw prompt on the correct line after window change To: Roman Perepelitsa Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Mon, Jul 15, 2019 at 3:09 PM Roman Perepelitsa wrote: > > This patch [is] only doing writes to the terminal without any reads. > Whenever ZLE prints prompt, it issues TCSAVECURSOR OK, then there is a different problem: Nothing prevents the prompt itself from printing TCSAVECURSOR/TCRESTRCURSOR, and in fact some of the themed prompts provided with zsh do that. There's no way for zsh to guarantee that the cursorsaved flag is accurate.