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 2e9abff2 for ; Thu, 15 Nov 2018 14:49:10 +0000 (UTC) Received: (qmail 21005 invoked by alias); 15 Nov 2018 14:48:47 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23761 Received: (qmail 10750 invoked by uid 1010); 15 Nov 2018 14:48:44 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f48.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(209.85.210.48):SA:0(-2.0/5.0):. Processed in 11.847268 secs); 15 Nov 2018 14:48:44 -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 :content-transfer-encoding; bh=AP6VbIU7iaoe/rLGRXeHE6aV7jD4x2mH29DClL8Px68=; b=eMZWtDMNmt/FafJlNNJgFby4YP349Tx9vbFqymCAebc8jGEWZutcGeutYldtf0i2lI FY6QxV1z+zMHd2scjtzbjmL4ZQG/CwxAJ+PTjhXEfSxfuZAFeRJRjz5DKcQtaicLDnJ2 UBqqQCbmM+Bi5RDxumV3l0l9QTtCNuF5XxiD5E7+pe/qG/oCiwTocPU6b8MsDLzTCZPT cw8sKam/ct3yc3JAF+uz4PbH/EKUI5J7u0nBXHm/VecBLvoOhJRBTniHeJ8Aj/CSmKZG 634B2M40mzTMS9cCtGovmTwnFbUAEeXfADaXDwso7HX12uvrrhNXcHkBcmoX/k0xuVUV JKiQ== 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:content-transfer-encoding; bh=AP6VbIU7iaoe/rLGRXeHE6aV7jD4x2mH29DClL8Px68=; b=nKImB6qYGuhAN4ksx4wj43j5WNAoh0US/D28DZOV6N3eHwehvTcrln/qRfq/JcqotY TP2aRqkPka952+0ZC00MJAZwuxqHs3DSA5hRkUAIVA8rTpbLL5wENW0S5PKXE/QvwXtV fTtJo4A30XiyISi0/VG1jqxzb5SrBe5oDT4CqX0cKkXmGJzohROzXgSWb6KB0QVYN76F fqbHQSuHGvXr7fmQP+Uw8Y4COvPYFb71DFrFTieOzFr4ZdGTooZQCOXbM34HFeLnn+MV Q966HGz0Opds/cAOZ1OUgLoHNYl1InGadPvEy+XxKLCLdpCTCmkt6xMtgV6F6xPkjeg0 e8tg== X-Gm-Message-State: AGRZ1gKXvivL7eb8ZRn+qJDprLxUBvZ+QO1thrqZEGd+qbqYynQzDiCh d4rfYQ4J6Svj8pRZ8fJ6DyLrNuA9563sxzQl6tgPKdyj X-Google-Smtp-Source: AJdET5dlKnnXlIzV+gd9y5GiX0ZccanSBYyFVEJ8qOYDHWfzjq2z/EIcFg7W1d4SNJg3APQ5NrieRY6lYEDrvEx8o70= X-Received: by 2002:a9d:17ca:: with SMTP id j68mr3542178otj.268.1542293308696; Thu, 15 Nov 2018 06:48:28 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Thu, 15 Nov 2018 15:48:16 +0100 Message-ID: Subject: =?UTF-8?Q?Re=3A_Terminal_theme_tool_=E2=80=93_a_workaround_for_lack_of?= =?UTF-8?Q?_24=2Dbit_color_in_Zsh=3F?= To: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable BTW. By using the new, probably incoming (the author is working on needed changes) feature of the `unixorn/awesome-zsh-plugins` list =E2=80=93= an evaluation of plugins (see an example at: https://github.com/zdharma/hacking-private/blob/master/zsh-plugin-assessor/= README_new.md), I've found a plugin that to some extend does what the proposed terminal-theme-tool would be doing: https://github.com/chriskempson/base16-shell On Mon, 15 Oct 2018 at 17:28, Sebastian Gniazdowski wrote: > > Hello! > There are 2 escape sequences, ESC]4;n;#rrggbb\a and ESC]Pnrrggbb, that > allow to change terminal's current palette. First works on most > OpenSource / Linux terminals and supports 256 colors, second one on OS > X iTerm, supporting first 16 colors only. (I've submitted a ticket for > 1st code on iTerm GitLab project page > https://gitlab.com/gnachman/iterm2/issues/7221, you could support it > by commenting in favor of the feature or by giving thumbs up). > > I'm wondering why there is no tool to manage terminal-themes? Many > things, in particular syntax highlighting of Zsh command-line, can > easily gain from this. It's essentially a workaround for the lack of > 24-bit color in Zsh. As a result I've decided to extend F-Sy-H theme > support with terminal-palette altering, it should be there within a > month. > > I'm curious on opinions whether this really is a workaround for no > true-color support in Zsh and maybe on ideas of what such > terminal-theme manager should do. > > You can play with this feature =E2=80=93 xterm, urxvt, gnome-terminal: > > echo -e '\e[32m'Test Color Text =E2=96=93=E2=96=93=E2=96=93=E2=96=93'\e[0= m' > sleep 2 > echo -ne '\e]4;2;#aaaa00\a' > > OS X / iTerm: > > echo -e '\e[32m'Test Color Text =E2=96=93=E2=96=93=E2=96=93=E2=96=93'\e[0= m' > sleep 2 > echo -en '\e]P2aaaa00' > > -- > Sebastian Gniazdowski > News: https://twitter.com/ZdharmaI > IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin > Blog: http://zdharma.org --=20 Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org