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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8647 invoked from network); 1 Mar 2023 12:55:15 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Mar 2023 12:55:15 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1677675316; b=r8HFlALHPhwXs7owFMfi4rLxiuZ6/pXgSD9SYt21cT4hPjy+Xnp2Fh/JBJHMebukylfdYGZCFk vC7TmuGGsqqoWAhJEZdjXWkDi3ZpaFT9zcFsNmVVgqSo7LQEM4evxAUGq6t7mea3K9srDFiHMD nb+yTYscsQ4YEN+7KeuD6Y8mnCiJDK4ahh2sW/QjAo6oT8bCbIho+RoA8z/kBOg8H9G8x2gQCr qvasu6QZdQEd58CPSfpkJ9SqMp2WxRSguOiqxTHtecxW35romgjAtMyr1Z+K3DDgpXovhfAh2h H7kFHHWD+4Qko3O965Lx6rnc2zhT+sg0XJCjudnMCvJOuw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f173.google.com) smtp.remote-ip=209.85.219.173; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1677675316; bh=vvJa3bvn0KFuD683KsJOeIztwIW08vVFXc9j2YSGVxc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=S9lVDwRwOGdyGR4IrQFOboPbXMbMm58bk8xIitPLVW0y+hPB34PeGXT63swq+UXEz07+jT+aXk rQf+QjrmosDmE2StpPVJTNCaPCE/60ggToTpggZbT1C7rGysHn39kW0QQTA/2Zr8eRA4gmrAH/ AgmoR4lsp7iseUSESxBhejm9eJpEgbaunxBIcoFRmdzMaXILTZ50gMK1P7fhbrQ+E78EJTlY9N lI1tQsdmkmrjnxBj/shhANELy2pXE/NmICXsXGFPa0Wq5TbsKCbja2LQyTCbXX9AHCwOManzqk VTtXgNB5YDQS0ow003AhGyGC9SgXcllka1igHwFIFAhnEQ==; 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:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Br3a7fn4tZQplGc7gWF0sm5qtZZ2ECzwoJtdrk3JEN0=; b=fTVXS7qtk7Qg9KQXewAdZ8G5rF s0bokeYGa15cgybScC9hf2QOMWm0Ib7C3/LMCoiPhNuR/Q9yqtloiI0jcJpjCcLXcZ2xKqijYMFwN jehx/dvuA4pS2JHZjODMFDCtIwlEFJje07dmZ5X1T/dIka/x13KztsVz5u9yq5b8rp5FcwnjIX4Lg nzUWuVETpXnZAufKvpeEYrVaZGZ7oncwH5IKzJJsz0dwbe37uSnWqnkRRVbLVRX0IN7knfpQz1LYi GPsNDLkBZcR0TC2+eLpAdHx0kgQx+HDCJk6R6+qFxj9I6f3GhPamWnQYEQOxmPXglN43uyDSeRslW KmcZv0Sw==; Received: by zero.zsh.org with local id 1pXLzG-0004GH-Fv; Wed, 01 Mar 2023 12:55:14 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f173.google.com) smtp.remote-ip=209.85.219.173; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-yb1-f173.google.com ([209.85.219.173]:40603) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pXLyh-0003tt-6L; Wed, 01 Mar 2023 12:54:40 +0000 Received: by mail-yb1-f173.google.com with SMTP id x12so182914ybt.7; Wed, 01 Mar 2023 04:54:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Br3a7fn4tZQplGc7gWF0sm5qtZZ2ECzwoJtdrk3JEN0=; b=WQBSCuIgmFSchzcD15TPIzARLx9Qvhu4+NeJ5AyIhMIbVjg7ZZv363KjLvirU99C6P 09RFKQZ8Y5+TQmIwFJkjo4zdMT57WS/3af+hrL8Rv7EEtWTwGRzFTF9CRfUWpPFLhv4W 4JndxuvSRQgImXXz4AJur9j7U7kAegAQ068d5NVSVad+kBQxYzmKK95PWU3bQ6t0ibmC Mtv+68fiNAdHHpeIEZlGh4FEuyB/ajsM/88/7qrfm8T4x/EGWTGI08QCs5iSHFxnxDtM DyJP+rroEd1XGmqmSNtEx/S9aTPsVBLlfZoqbifC7D1ZLNOWs/yjuE/rzPy5E92hAR2u Bw5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Br3a7fn4tZQplGc7gWF0sm5qtZZ2ECzwoJtdrk3JEN0=; b=n72avYCc6I7oBkfZ44Gkl+EVXMol9qgXdBEJ+ZDLUOUJjBhC+RIoyaNip3hwZQmYwk FdF3rZ/+OKEOYCn97jdYfIoa3BTeodyxsoftygqfSB891biuCL4owB1w7Gy/CD6Vh1jQ CPBXG4p8VYR36xjY/FrBiSIbjvTbwmR2fh/mGSrfH5eiEkqfrIiBcUtIdNWA7++xuzDp JeA5C3ByODfAGou1ESq88SyptbNWMfVyK+NZkkaPPUrXVshN/AVKkmt02FsThEijIRWx afx9E4RZ8PYMFTN8ngFgveJBEXzMJijnXpV5p18T7j3u4T00mMwcqVXt3kO0EctpDQk1 JziQ== X-Gm-Message-State: AO0yUKVTKqVXhbAe/fpbkYtT/Mogue2idoFzK5A/b5q5LvEoymVtm66z 1lvd8TExiTt1A/m7bhWlJ2r2ch33lJKGKzU2h0ghkt/ahPw= X-Google-Smtp-Source: AK7set+pmHGrvjhI//qf/KDc+MtUtV8EPZbj1nmP1dqZMnsav6bod8VmIrtPRJX3ZQLLI++hUqgfpYvaNT21WQjV7yE= X-Received: by 2002:a05:6902:4f0:b0:8dd:4f2c:ede4 with SMTP id w16-20020a05690204f000b008dd4f2cede4mr3302760ybs.2.1677675277390; Wed, 01 Mar 2023 04:54:37 -0800 (PST) MIME-Version: 1.0 References: <20230228155525.4186428-1-felipe.contreras@gmail.com> <74532-1677601785.546332@Gkr5.eJZU.TqFp> In-Reply-To: <74532-1677601785.546332@Gkr5.eJZU.TqFp> From: Felipe Contreras Date: Wed, 1 Mar 2023 06:54:26 -0600 Message-ID: Subject: Re: [PATCH v3 try2] prompt: support generic non-visible regions To: Oliver Kiddle Cc: zsh-workers@zsh.org, Bart Schaefer , Roman Perepelitsa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51500 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: On Tue, Feb 28, 2023 at 10:29=E2=80=AFAM Oliver Kiddle wrote: > > Felipe Contreras wrote: > > readline uses \001 (start of header) and \002 (start of text) as marker= s > > So the literal ASCII Ctrl-A and Ctrl-B characters and not the \001 etc > strings, right? Yes. > The main concern I have with this is whether there definitely is no use > of those two characters anywhere by any terminal for some other purpose > such that some user somewhere has them already in their prompt? If that was an issue, wouldn't bash users have already experienced it in the years this code has been active? (or possibly decades) Moreover, can we agree that it's at least extremely unlikely for this to be an actual issue? > And do we know they won't form part of some other future terminal > sequence? Once again, can we agree that's unlikely? (especially since bash already uses these) > We can find a special way to generate the literal characters but that > only helps with future uses, not backward compatibility. Like what? A setopt flag? > I can understand the motivation to be able to support the lack of > prompt_percent and perhaps both bash and zsh in some plugin or other. I personally don't care about the prompt_percent stuff, somebody else mentioned it. The usefulness of sharing prompts between bash and zsh is what I'm interested in. > > + } else if(*bv->fm =3D=3D 0x01) { // start non-visible characters > > For now, we've not, to my knowledge, bumped our requirements to cover > C99, C17 etc so stick with old-style C comments in the code.* OK. Will fix in the next version. --=20 Felipe Contreras