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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 edad61d2 for ; Sun, 11 Nov 2018 05:11:45 +0000 (UTC) Received: (qmail 5518 invoked by alias); 11 Nov 2018 05:11:31 -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: 43814 Received: (qmail 19852 invoked by uid 1010); 11 Nov 2018 05:11:31 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi1-f175.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.167.175):SA:0(-2.0/5.0):. Processed in 1.776795 secs); 11 Nov 2018 05:11:31 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aKErr/kv3v61d89rZLwKbWcdkUMznmn8mJG/YEGb+FY=; b=qfODVd039A+e+oiKf43W+3O0ES9N4+Vuyz54N7MQGP+MhcEevH9StOw/5/7Ylr3WOr /WFk9tz77+HidWnrYT3vs7s3TqyhpcOiODqDMtL56Rmat5FhwKVcS0eQSxfPPn2oXjVy 5/ZFs4zkzvRbabW7L/vXn+M6Hu/5Pdd0RhAvy9r6UoRejlyMAKgSd9ZeUuPcoIvi+S2m KfRRVsWsCVWznj21w3wyNLp5h1UODMWXnhDdfrGcCj64KMV+8Of/+FsR3qxW+/aOI6py pH+fOkMRwvrjFBtyVh8epCIWzBGeyIfsr7QhxuvWZLm8SD4L6p+FptpMN4qVicgHwQxL Rq9Q== 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=aKErr/kv3v61d89rZLwKbWcdkUMznmn8mJG/YEGb+FY=; b=NL6lcVg3OcEFRUnLSsBWgt32egYNUtDfM6cTx/+PhmfNFCc9eD6FVkkqLPsjC6eTAb uTry4+0ED0qEeMX00a4aOm89p/Q6Twfe7nVLV4iy8Q06TZeC9qFGVO9M6uWM5RO3cuc2 b9MUiaLcoH3P3rz+IEXSPs+CISUUoZ0Lf7TBe4E1JXiK7vMft9u9Oz8jYOpfzm0PZRm8 VnTfxw7yzwrN2ffRVNeOHgytAytEhVd9ZmNDIJ6RBSBfK4pHwHjGvLs2Zhst7upXSJ/p Ji7q6fuJzim6Q3LD+sx357JyEAQSy7ANX+COXf/UY3EI2+7OusyD/niUOCOFpfcByeC2 f8CA== X-Gm-Message-State: AGRZ1gIHsGf5WQzFazEmwKsZWDkjiSBKZdr6M6zJvViHfa2SPDMX4fwZ ANmyOKkHO5OaWqPlsJRovocLnf/+phcXaaZx7z4= X-Google-Smtp-Source: AJdET5fiAjxGasz3UtCUJM1pZtQDHrh6YOnt09N0u7kAZxZGLyCPX0oawaWZQnAj4qiitO1D9VpPAeJcKTBirOKE03k= X-Received: by 2002:aca:f1d6:: with SMTP id p205-v6mr8831752oih.332.1541913086479; Sat, 10 Nov 2018 21:11:26 -0800 (PST) MIME-Version: 1.0 References: <2362-1541646201.813952@nGIL.zWP_.YhaK> <20626-1541726901.821000@xGvJ.shtD.SkCN> In-Reply-To: From: Sebastian Gniazdowski Date: Sun, 11 Nov 2018 06:11:14 +0100 Message-ID: Subject: Re: [BUG?] If true-color is used, overlapping colors do not work To: Oliver Kiddle Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Sun, 11 Nov 2018 at 01:43, Sebastian Gniazdowski wrote: > I've used zle -T tc tcfunc, which sets REPLY="", i.e. discards the > codes. Should I change them to something? Because I'm only getting LE > termcap command, moving cursor to the left (after printing POSTDISPLAY > with zsh-autosuggestions text), some cd, ce, up commands and no codes > for colors. Do you think I should not strip the termcap codes and > specify them in test's expected output? That was for non-zsh-f full featured Zsh session. I've added storing of the termcap commands within the test. It's a sequence of only 2 codes, cd & ce: ... I've checked their codes, they are the ^[[J, ^[[K that I'm removing by // and in other (separate in execution) place by analogous sed invocation. No other termcap command gets invoked during make TESTNUM=X04. I wonder if maybe on your setup there is some other termcap command invoked? > I'm currently removing following escapes from all zpty output: > - ^[[27m, ^[[24m, etc. > - ^[[J > - ^[[K > - ^[[?2004h > - e^Mexit -> exit > - ^[[?2004l > > You seem to retrieve some other Zle-managing-output code (I think it's > this) and the tests fail? Maybe it is already fixed by the late-Zle > enabling, so you could try running the new test file? > > There are 6 tests currently: > > 0:basic region_highlight with 8 colors > 0:basic region_highlight with true-color (hex-triplets) > 0:basic region_highlight with near-color (hex-triplets at input) > 0:overlapping region_highlight with 8 colors > 0:overlapping region_highlight with true-color > 0:overlapping region_highlight with near-color (hex-triplets at input) > > PS. Didn't yet search for terminfo file, just did export > TERM=xterm-256, not actually sure how to search for the definition > -- > Sebastian Gniazdowski > News: https://twitter.com/ZdharmaI > IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin > Blog: http://zdharma.org -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org