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, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7153 invoked from network); 11 Aug 2022 15:26:51 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Aug 2022 15:26:51 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1660231611; b=lNwwxln+1raoQNIpBth5QyuspOjUc0LP6AdVAw/pHkdZy0IkLv7/31sE3wkywMAyc0GGeqJWgt 2ILTeH8RKdtdCqdwiRsN0s6/mLe6C+WzuKGi03VQSCDjRV5ZyEphV3B/oQIIw0TLeD7w3bnQdj 8SxZPXUaiYrxA45jUDSAJAF5RQ+oQIPMnycusOS8lvihdpmrDSu9P0b73dDRSPXXEuon/fdbQj /kai0umYwPKC57v7Vhn6IN+eG0oPg9w+PU5uOP0qgxHOrQXEwOTYWxu+rYcdQCxEhuB5ztp8TV bLve6hjSd1Ox4FKAoJhUltRPGaFrWhYT4nXU7GjrqBrsFA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f53.google.com) smtp.remote-ip=209.85.208.53; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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-20210803; t=1660231611; bh=S2TiYLK0p1i2wyj0eY6P/VO+OJ3GHH7KEPsO2Ui7WWI=; 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=Gxss0LeuAcsl5QzuKZ9f1V1cRKLIDQn8pxdEHdjN4Db3aYjdyw9UhhGvic/2ERBgOUEEmJXgux KxhIBkyFjFSOmcp9iK5DteVB1dRvx41SOXVWCPwCFb9pRp6hU4Wdxo+IZT/gXZ402pRGm9g/vY eZUVydm9wzZ3Dh96L+3zDgg/VmoSjd967Z0p88k+nrvAlyrrWXqFnfYCJc3kGSv/8REmkC88v8 PyMapa8GIc+Gid9Ydjl3Is2onKdgZ3ZoJRgHEw3/dTy9GXeYx8IadH/AC1MOHkorf6gFWAlp7Q Mstq9c7aMIzFLH06G6LQNABUi6qayaaoIt2M4UAdOCb5Dw==; 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-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=wUNAzppuIROOeUkY3kUKY4DvnXhqA7Xw7LpSD2PPnSc=; b=B+TKjuV+PaI2efqQHIsX96uiVQ YkmuPINm51+Kkk73bqfpEYZXzyb/WG/cJOKXl89PAido/FDzunpgG5D3aM4SjgbcVeO0dBz7o4RHl 9Qmz4yZMw9JMS+GHOvWti6J0UPmvQDd56nkDTugBBAD+d6QklR19GTQclJEFg+lJcSqvsXmm94Beh eNf0sOLMB+RtqbI+7HdTrUdz7f7c7K90h4xu43Nsnz0Ls9hQbYjGxoJRuhMddgHA8UI9mJJGqrp7r eRKKo1qWjgS0N0uHb77Ldeao09ASv/UgSlcLsOoj0n17CXYhDagj/L4Bfi9688fPYnpLOCSAnhPm5 //02aQ3Q==; Received: from authenticated user by zero.zsh.org with local id 1oMA5C-000AQO-S5; Thu, 11 Aug 2022 15:26:50 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f53.google.com) smtp.remote-ip=209.85.208.53; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f53.google.com ([209.85.208.53]:44602) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oMA05-0009yP-5A; Thu, 11 Aug 2022 15:21:34 +0000 Received: by mail-ed1-f53.google.com with SMTP id t5so23331850edc.11 for ; Thu, 11 Aug 2022 08:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=wUNAzppuIROOeUkY3kUKY4DvnXhqA7Xw7LpSD2PPnSc=; b=CDz3XV8jwmgR6YAxhbE9zb0rcS5RSVEmtAHJscTeu3cmTfrZvEueMZW/Hcf+H+yj+U k/1VCqLujAJgtBhv8wDkI2vBV+st8wL0OrMtqDHhdLlYzSvClY73+1QvXjt0gfvJDIij Jby6VZDxxFg6nlfE4CelLJTtmY8HsW8wC7rJQf/hhsDvHDcqayWbF4uCsLC++9eExHYR SBMfxPzTdYptnxcypWZvxdCePuWS41HuAGv6gZxhJH86O6IV2dTYJJeLxzf8C5+VN0bd 4vGVuDwaJDggqXFa/U6d5BlAbPJujD0iR9mLHyJQga7fBcfa224mxLwtdnJ8p6g2mTDh +dXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=wUNAzppuIROOeUkY3kUKY4DvnXhqA7Xw7LpSD2PPnSc=; b=30HYz545myz1wCRBjLcPdLlnE3iVaxzAsoNUxkHojjnJKLLLrk+IbKVbBoxVFHgg2C aMVYM5tSED03u6TM14T3LwGrHRh0ZiZWgIzW7z8i87H22fvlqxKPe0aYpR9VfMA+aIEs RmcTvG+FqxUF3zGsmZycI5wsBUb4mxZRrd4yU2KYDIWfrX7BxMEFYTNt+6UXse/31di3 GV98KBUXpsLZFwYidIPS3nnQSFwC1Po7jGKNPRdE8Kwt07AVJTyUrZP/+podR/MZqqWb Mu+rnpEGAPKwkGED/E7SlxTHIqrHeoKHHluK8YOG+zrBFKfaA7+GgxZ4wOHI+zGjYATl 5jHg== X-Gm-Message-State: ACgBeo1y+uwg0UGWPLhCOCyBawHhCpX3E/qNtDNjHG9O0am1N46Q0ooN sfPTH1lFNZBqgLE/7uDA2sf+WaXaPr4Qi7Di7wk3kg== X-Google-Smtp-Source: AA6agR6zI8ESZ1W442lJuAduqcWYkeEsbFz44QjDLdwhJwK6hXb/WzyXhY3k22vda+XXgkq93xfr/imqu/BV++NpzmE= X-Received: by 2002:a05:6402:268a:b0:43e:84d:c5cc with SMTP id w10-20020a056402268a00b0043e084dc5ccmr31622268edd.372.1660231292667; Thu, 11 Aug 2022 08:21:32 -0700 (PDT) MIME-Version: 1.0 References: <20220810115120.182853-1-felipe.contreras@gmail.com> In-Reply-To: From: Bart Schaefer Date: Thu, 11 Aug 2022 10:21:21 -0500 Message-ID: Subject: Re: [PATCH] prompt: support generic non-visible regions To: Roman Perepelitsa Cc: Felipe Contreras , Zsh hackers list , Oliver Kiddle , dana Content-Type: multipart/alternative; boundary="00000000000071dd7f05e5f8b892" X-Seq: 50455 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: --00000000000071dd7f05e5f8b892 Content-Type: text/plain; charset="UTF-8" On Thu, Aug 11, 2022, 9:38 AM Roman Perepelitsa wrote: > > I like this patch but for a different reason. It closes the capability > gap in zsh prompts with and without prompt_percent. I've been traveling this week without access to the source code so haven't otherwise commented on this, but: 1. Roman's point above is valid. 2. As previously mentioned by others, this is related to %{ %} rather than to %F, and should be implemented and documented as such. One cannot write $'\001red\002' (I presume) and it would not be generally useful in that context. 3. Escapes for ctrl-a and ctrl-b also work? Or this is explicitly looking for \001 \002 ? Any possible conflicts? --00000000000071dd7f05e5f8b892 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Aug 11, 2022, 9:38 AM Roman Perepelitsa <roman.perepelitsa@gmail.com> wr= ote:

I like this patch but for a different reason. It closes the capability
gap in zsh prompts with and without prompt_percent.

I've been traveling this= week without access to the source code so haven't otherwise commented = on this, but:

1. Roman&#= 39;s point above is valid.

2. As previously mentioned by others, this is related to %{ %} rather th= an to %F, and should be implemented and documented as such.=C2=A0 One canno= t write $'\001red\002' (I presume) and it would not be generally us= eful in that context.

3.= Escapes for ctrl-a and ctrl-b also work?=C2=A0 Or this is explicitly looki= ng for \001 \002 ?=C2=A0 Any possible conflicts?

--00000000000071dd7f05e5f8b892--