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_ADSP_CUSTOM_MED, FREEMAIL_FROM,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 193f7b52 for ; Mon, 6 Jan 2020 19:41:05 +0000 (UTC) Received: (qmail 12110 invoked by alias); 6 Jan 2020 19:40:54 -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: 45259 Received: (qmail 7924 invoked by uid 1010); 6 Jan 2020 19:40:54 -0000 X-Qmail-Scanner-Diagnostics: from mail-vs1-f66.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25684. spamassassin: 3.4.2. Clear:RC:0(209.85.217.66):SA:0(-2.0/5.0):. Processed in 2.331065 secs); 06 Jan 2020 19:40:54 -0000 X-Envelope-From: sgniazdowski@gmail.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.217.66 as permitted sender) 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=oAIPrMfFJDwsIo+zYrGA4ji1WSgtKRTfXkl4e0Ln0JA=; b=jUNQU6K9kIJI3VHXxMxEUdQVWuOhFBB++hkjXwLM3TL0BQ27V6XIw4CbcIv6GLDmr+ /WatUh0cabtqSzVP/NACzB1O15PJ1muZYIOMbAri/eJyQaebU2YHDKawrJ/Y6E0bp3G7 yyosaVhT0DB0MOw/WJ1a8QKUwvx97JViIo4ohY0k+bAdrzgNpOtukomWhKwmSAVxQ3q6 breDzGGmaP5p2tPlJFNMaYwOZEGvYGv7w0zuDebXH5wW7w2fv4UfkIFcHY5xt5rQbEOl IQoBGA8Izk5Ngj/y+7oPGtop8N5rpIcjLKAuc0GVZ2cekakqNit4LBnrhBU4kNUTCxDs EtVg== X-Gm-Message-State: APjAAAXTuV6rlIjC0pDAkNb61BYmbh4Wp8fPLGW14ARru05PSrZ+wtuL J4wjHQXzF3vg0QMmERLpKmfCFi5sf16hig+a1fc= X-Google-Smtp-Source: APXvYqyEzM9QL6J0X8mEsUGfh//oxHplk+BxOoos7jr9gSFa54fwmvorTRle9Yw4yofB5JQA0QIrHgA/F35+p/P0xq0= X-Received: by 2002:a67:c582:: with SMTP id h2mr3449293vsk.77.1578339619355; Mon, 06 Jan 2020 11:40:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Mon, 6 Jan 2020 20:40:12 +0100 Message-ID: Subject: Re: PATCH: draw prompt on the correct line after window change To: Bart Schaefer Cc: Roman Perepelitsa , Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Mon, 6 Jan 2020 at 20:28, Bart Schaefer wrote: > > IIR the problem correctly, a possible approach to resolve my concern would be to have the terminal report the cursor position for the shell to read+save it, rather than rely on the terminal save/restore action. Ah, and that's doable by the \e[6n escape, like in the promptnl function: https://github.com/zsh-users/zsh/blob/master/Functions/Misc/promptnl#L25 -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org