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 3830 invoked from network); 19 Jan 2023 16:37:36 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 Jan 2023 16:37:36 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674146256; b=mUft/HEbV8XjtcUyQI9QgrQD/MdqWjsy3b3Kwr4bm4yehinFUm5C+MgLM+dF6RHe0I8jsnB+k4 QhqrWSU8c+RLdrrqbqqn1fJhdyUfGQ66aH4LVv+d2aWUYfD7ULy7cuzdCqQyzpI2TtAhhvc9yV 9T8Kh7EuxTqrXqr5iEaOAxf/aYQu55nRrpZc+dZwyx0ZlBLPiFxdIIVSOJmjOyBsqwmpb+HK/2 FB9uKfwFtoetny/b46V1YsgKnMibvmWF4E5KM6FbpZa1muDLautbgA+U3KHa03Brs4EZ9n000n DP4wEcmz+OsAlwxzjOgpGf4c7ipWqZeIchLVO05PhZPNoQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f52.google.com) smtp.remote-ip=209.85.208.52; 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=1674146256; bh=FzBAwMGxiOHcETz14u/7ScD03dcptqmOZSzBlU3dmgs=; 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:References: In-Reply-To:MIME-Version:DKIM-Signature:DKIM-Signature; b=A3tKzdcrViMCJEDTv1P2/+Mh5s6aLVgsIdh1kKL7yymx+Cbw5rPXhjVU7rwQPWZuQzb5KNPZoQ 4bdweBLKZzRdLgyQTfsYxSbr3yn8uKPRGj/6PrHLYALxZ/y5ikhnemzoFAhynEY59Lk7Pzhkwa Kx6xuBUO/ZTd56ZYD16K5+HWAb8IsVoES7h9zpqQI6kEvI+wuSB5dk2oxPI2eryCWqV6LILMWP kuUA8OtJQbdU4WDNzPkfQeQQB5rBUhPp9nkz8MBbOUuf1/aVvl94MrhbRObsQ5igjP71nLj3P2 qw17aDmMm/5cXHnAdWOvxjRrZbsszsCb84vufUPPWR394A==; 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:References:In-Reply-To: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=mTPCEr1sb+LLEexDq/f0Yjehx+laivClAUlmMMiU6sQ=; b=jQqmaZag1CUDzjzCz+6XahkI0f vXydlHTBNw8JDH5dC31GFknEJ14CiDsvN/wd/k6Sjh7fukVhmurd51yis0Bmd2u/Def48pY4GepUg HKRleAn3Qa9jNdHc2SM9kN/MnFhGKCHxJboYM7RKUrol1Q5oVwXN0yfzkpknbIj7hvpNsKDH+aXDK tO89VFTnE37m2IvaaC9OMh9OK+UPFB6H3FyA6CIAQ9J5cl55maKLyYPLaj8eEXRLIqZbXukYqxbfc XW17WVg6bFeH3MH4kRI+9UEg8d3rm6OXLqbeOCN4zNE5ULBsuk+aXmmzkfJRZD07LRdsrd/XAoQXD uo6fSTCg==; Received: by zero.zsh.org with local id 1pIXuy-0008Hv-LZ; Thu, 19 Jan 2023 16:37:36 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f52.google.com) smtp.remote-ip=209.85.208.52; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ed1-f52.google.com ([209.85.208.52]:45048) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pIXg3-0004I8-DO; Thu, 19 Jan 2023 16:22:11 +0000 Received: by mail-ed1-f52.google.com with SMTP id v13so3470708eda.11; Thu, 19 Jan 2023 08:22:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=mTPCEr1sb+LLEexDq/f0Yjehx+laivClAUlmMMiU6sQ=; b=KDC7REDh0L68BS82qtB4nKRsW6LJ+sCC77StFI8D/uHY4rGcOMyzPb8lW0hO7+yhVJ DSDLRYtpcpMCviY6lxzyOInJekH1jgTNvnse6DOVQ0RavK28cNOz0MLUeCV7tTd2OWSq Otu/OI3uPG2fe4i2Yqm/HiM+eI11CTycmE/ZwL+K3lvvCtMYyB5VTGfMieHjBO58cXTl EUUNAh1l97ysH02vbFdmyuA4nykuEld6WGuak0kDZ5+HDtL9T0YoprPfMnqXi4rkg796 kiIf9kVFl6F7rO0Itbxd44n9O5qeUE4iLhzYip+Ko2DGb2IvA7yBE+EY3yz6W1pSnFbc NaFw== 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:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mTPCEr1sb+LLEexDq/f0Yjehx+laivClAUlmMMiU6sQ=; b=DJPYJyjJUJK6DEUoXVEuYDlAalMl5o2xHAGQyrdHByg0KfW0cN88qnAM4ymCsw90sp /qq9EJqLLAba9+Zb0uHXc3yNxx4ZiHm/4PUI02GViDvOHgdLvlOsiD6Z0u/s/gTugX07 /K/KOzaZ3ztuBLP0n1G5SOLfPUQFTsnDDUF39HLnxUDhNCRNrK8L92SzsZIyIeIYvjNl 48CCHmQF3EMtcHi5VBWZ419w5pyi2+cgC6yKGEi+5BUWw5+1Zy0A15OqMi6zYpyHPk9E u0Zr8hDyZB0VLtQr2c6FW0ftH+i+D5t1dQwKKLHS1/FGGNQolFYaPwUKkZC4SymeISqu 3zRQ== X-Gm-Message-State: AFqh2kqRoddX2/MMLJKFDifnGUl3+Jh03r9gILuCfKsYl0uPm7CBkkrE A8p9feWYUeIBaWoOe47tiRsI9It8RcDmXwMwRNqaj6LK X-Google-Smtp-Source: AMrXdXsQ+iF/uvmJRQ+2YfQ/M54ZLRbd91AJfpKODRzntEh3AiIWGbqR1L0njdIMTgjcy5NJpR/vCYEiVABl8pcikfY= X-Received: by 2002:aa7:cb16:0:b0:499:b5a6:f92b with SMTP id s22-20020aa7cb16000000b00499b5a6f92bmr1426648edt.262.1674145330510; Thu, 19 Jan 2023 08:22:10 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a17:907:c606:b0:7cd:3b2e:124 with HTTP; Thu, 19 Jan 2023 08:22:09 -0800 (PST) In-Reply-To: <2468-1673042601.684998@j4zI.qkM4.yrwt> References: <36223-1672793943.791824@SLuG.9t5a.jH-P> <2468-1673042601.684998@j4zI.qkM4.yrwt> From: Mikael Magnusson Date: Thu, 19 Jan 2023 17:22:09 +0100 Message-ID: Subject: Re: PATCH: support for italic and faint fonts from region_highlight To: Oliver Kiddle Cc: Zsh workers Content-Type: text/plain; charset="UTF-8" X-Seq: 51319 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 1/6/23, Oliver Kiddle wrote: > It was brought to my attention that turning faint on does have a termcap > entry - mh or terminfo dim. > > I've attached a replacement for this patch to use this which also adds > a function for combining two attribute sets allowing for priority over > colour and font weight to go to one of the sets. This will get even more > use in the next update for handling leftover attributes from the prompt. I didn't check exactly which of your patches caused this problem, but i'll reply here. % zsh -f % zle_highlight=( default:bg=blue ) [hit enter until you're at the bottom of the terminal] % cat Now the whole bottom line is just filled with blue, which it should not be. Similar artifacts sometimes happen when the completion continuation prompt is shown ("At Top: Hit space for more..."), and I also noticed in some circumstances when I hit alt-m to start menu selection, the selected entry is not showed highlighted until I move it once or hit ^L, but I don't have a minimal reproducer for those things. -- Mikael Magnusson