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 14531 invoked from network); 11 Aug 2022 20:43:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Aug 2022 20:43:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1660250620; b=lIlxWA/ISdd+Pl1+x3QGyH+dBuDCgdkTBtxh7dock1YzNCoyly+yDwG0pAd0L3lJmAxbWYUFfn 3NVwFJ9Q6I4ddWr0URc1zWU1+VhVHawC3P6UceIPJPxtwfiFMcUIizVKhj413S3Gfy8MtL9c1A fgBrzjKV9XLY5NZabpAQaPvbF563h+uTPiF84jvCPW2OA29Qm1CwM4kOol12J/tMHUgRAu5Zen Lq3URFL76GJlZuoStkM9hNLDVrG32lgWaMGuOL+nB3fLVSrR/dDnC5htHZh41eNQzoZAz6KizY TairJdyjJomKvHg1+frd60obzBNMPqAYTXENdweJOHLF7A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f53.google.com) smtp.remote-ip=209.85.218.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=1660250620; bh=Gbc5M82DA6SVFeOyV3t6NrQXaJwm0RR6ZuyL3Hld5eY=; 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=Vqx4J1ftE8mQwpMW0xdHpjzeAx0uJQALQYlhzOBqkKZibAodGI8JKXrRxje9oODuz90pDyqSx5 7E1qAOLxDa3xCKBsEa1kgchO6hRvgu+7QEQPCDOnkm1vtsOhyaEQkcstu7YWrDQjsWAajbX2iy tUkWo4K6rZgm12uUoQUv6VA1crdSS5hvdvpR8UU6s+gA4GGr8h21uz2uMhiwq4RPxA66PaygH6 vilGNQc/JtuavuWt+62NooL2dX3F+u9vfY8TFUYR4r7raK2yd3FV70RVsN5pooVJah/di/8fLH 66SSa7nVQu0JhBNiN7KnhFE78xXlOGmqdsnmqrLL5Bh87Q==; 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=Gbc5M82DA6SVFeOyV3t6NrQXaJwm0RR6ZuyL3Hld5eY=; b=mpHwSrcj/A+2wTQsXTwleauk9S 7im4GI1yzncVhgHjJU41uOMoikSohydxcG23d3MtrGM8GgYtwVJHBSHcduXrY4tdibru/d3hgutS7 yQGGYOO1XwhKadaIqJwYU7SKJIeHTa6gnq7ETV3EGmOm8EKZ/ie4hJdS0EK3ZFMX1JAAAGPM97W56 L4BAVtKl8cry5f7pY52PVPEhCiKICONUfk+KA3aExRX+ZUN4ce39rpqMNBfjuEMXs8sZMGFYBc0A5 iZ4Uz7n/qliC93rvLzmZGjj2a0V22+ReFlBtTzgP0mIEXbHmWvfzGvAR6KwInAhTLrrmj3cxSIBZ7 4V9/o45A==; Received: from authenticated user by zero.zsh.org with local id 1oMF1m-000PXd-Sz; Thu, 11 Aug 2022 20:43:38 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f53.google.com) smtp.remote-ip=209.85.218.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-ej1-f53.google.com ([209.85.218.53]:41647) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oMEwb-000P71-Cl; Thu, 11 Aug 2022 20:38:18 +0000 Received: by mail-ej1-f53.google.com with SMTP id gk3so35447952ejb.8 for ; Thu, 11 Aug 2022 13:38:17 -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=Gbc5M82DA6SVFeOyV3t6NrQXaJwm0RR6ZuyL3Hld5eY=; b=YoR2Yul2N67iDIU0n/Lqs/DkZZyM1Auz8+p9/x04ysyXQSPbFXwnrMcXwv4ePBuWJ/ gl6vgh3WhgBKVgfW+NmqseKCjfARhDIKJ1/vLY/iB8pq1UK3BTetrNLUhVn5xaTV6Es2 h6z8pxcqofRDjYhvQBoMzoU42oLsa1wEMTzC2gityyFhtVgL5mb4A6Vb6AGWIMfY7ySy zCP8l2OZZWIJBJCDQmROMhcBm2Te0rVKXHVJ3B4kzXYrXteGSGBuMEML4MW3Z9P1OUqY DWKXAGrKwVkMu4r1QOdNS//++0w3xN62VBlMrExYt+EisoeKfEAQs5Vj77QTlO1VqFRc /9Ww== 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=Gbc5M82DA6SVFeOyV3t6NrQXaJwm0RR6ZuyL3Hld5eY=; b=aoW4bgmSoRkcDvK27xOtBCSoypxkY1qT9arCF4MizF5y/5MeS6QkWZzZ2+IzqigxCM FihFExN2IY5RXafgw8fy4EBXPSbHav4/m9fc3t/qnzwkl7omYLX7apcByiaijNIp5+5m Tr5CFTQu80dai1kb//dL9GmtwRUFKsqy5W4QItR93Vrb0+OEaT5LceVOXPtAKfmbv9ks ipwDUNkwZfFKugBn9XsT4ojX5DZWcqsuQ4xF9MyGF9sSWWAPblfYMzJqSFj9YFz8NDxT siWhISccf80KSiC3SpZWLxa31LtNRJJcqVJs35QBjO+Q9UEip6L1E5dNp6/MlWd30wni N5HA== X-Gm-Message-State: ACgBeo1s+cxq8qnijdRSTYkeGuKk/E9bBALrhkdFzIdu+8CEn9GiSY+3 w6CfwyH2Me9rkq4kxfDwtawUjDoDvuUhSx73jWMZRA== X-Google-Smtp-Source: AA6agR65DIXTCSsmbVGqmrmOQyNuiNP/UZVaDfijZ30mRYmQPogXRdE5CbnVp5LqUWgo7XAGFXmBUuT8af9rdyXHe9U= X-Received: by 2002:a17:907:9482:b0:730:6e79:7e75 with SMTP id dm2-20020a170907948200b007306e797e75mr514581ejc.345.1660250296550; Thu, 11 Aug 2022 13:38:16 -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 15:38:05 -0500 Message-ID: Subject: Re: [PATCH] prompt: support generic non-visible regions To: Felipe Contreras Cc: Mikael Magnusson , Zsh hackers list Content-Type: multipart/alternative; boundary="0000000000002a37bc05e5fd2534" X-Seq: 50468 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: --0000000000002a37bc05e5fd2534 Content-Type: text/plain; charset="UTF-8" On Thu, Aug 11, 2022, 2:47 PM Felipe Contreras wrote: > > > > It's the same: what we do in zsh with `%F{color}`, we do in readline > > > with $'\001\e[31m\002'. > > This is my sincere belief. You are free to not believe it is. > This is getting a bit silly, but: While the above is generically true, given "color" is a placeholder for a set of possible escapes of which "31m" is a specific example, it is not true that $'\001anyrandomstring\002' in readline is accomplished via %F{anything} in zsh. --0000000000002a37bc05e5fd2534 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Aug 11, 2022, 2:47 PM Felipe Contreras <felipe.contreras@gmail.com> wrote= :

> > It's the same: what we do in zsh with `%F{color}`, we do in r= eadline
> > with $'\001\e[31m\002'.

This is my sincere belief. You are free to not believe it is.

This is gettin= g a bit silly, but:

Whil= e the above is generically true, given "color" is a placeholder f= or a set of possible escapes of which "31m" is a specific example= , it is not true that $'\001anyrandomstring\002' in readline is acc= omplished via %F{anything} in zsh.
--0000000000002a37bc05e5fd2534--