From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-users-return-23711-ml=inbox.vuxu.org@zsh.org 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 9ffcf5a6 for ; Mon, 15 Oct 2018 15:29:10 +0000 (UTC) Received: (qmail 16722 invoked by alias); 15 Oct 2018 15:28:52 -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: 23711 Received: (qmail 2489 invoked by uid 1010); 15 Oct 2018 15:28:52 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f54.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.210.54):SA:0(-1.9/5.0):. Processed in 3.365897 secs); 15 Oct 2018 15:28:52 -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:from:date:message-id:subject:to :content-transfer-encoding; bh=qbduMk4BEe2BULQnMW4ojtQ0x40fGjdck9GhZ2ZCKwQ=; b=JpTi0j14xQt1XLVWiAhfa3ga1TRDVCMLQWYu1fFgA7O/JjKcla5Dh+M/u1DIVdTlqo 1AwC3GohDncPL2Cnz8FYyONLVxvJzVg4xqdfNW00Ebvi908HDmbU7RJBS1lPyiOw9wVB p1QyvxoZdSh1B1reON4pWzaZxTKxvfS2sVNaRFRDBkL+XjGzFBfT93jPTtnOeiegNEG2 xZB4w67MsrY6wb3MA1WN0GAQ6/II8lAymelADGRkVUTvEvAIrhoF5fAfHDEpiE99RCXS sbGVR5rm8yfm8FrwgIwOeb0dw+uFsaIsuuij7WZ5yWIu5ZnNV3rMjL2HnraCePGemdkf VFsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=qbduMk4BEe2BULQnMW4ojtQ0x40fGjdck9GhZ2ZCKwQ=; b=EujwXS12nsOFN4t3eiNiZTBXPPP4v4rwRte6xtPfvMF+foa05Zt6xcy0fYtdOjaEUZ RW18M12yicFlXJqMUOlwtGe8d4jKl0jce7Cfl1j5KPfg/3thw6/ZPnSTmdcE1YVHSYLa 0C7QucqOD5zJHydfStz8dl28WGeu/nPh3+cXR/6m2YhxXDjt/WYdk0VUxuGNcn10FhrV dx5FsnGtToApkjsG6IgKBY8PUe/Pox0meKpwM6sYWlmZb1hbovV1olPSyla4ZdXmxaxz d4YdxUobcInJwEt17ldXr4TYPjVbtw1z2W4+5u2S/zPYNLW6+b9KlEsul2lfZn97ZdQb Nx2w== X-Gm-Message-State: ABuFfohIx1t9XA6mayC5anYJBY2V5i1qIzO1dh2G9cSS0bHzVsj0sOLm hYezWAcK8JFOqnWnfnWSUKvqNcu5tJqSpdtOiUDiejxi X-Google-Smtp-Source: ACcGV611pITvxdP6Dm92iQ+JhHUYSpCEs0Sde9r+6nT0eaB2bi762SvxcZxDSHkGIGkJ56YKQMIrfUUO3H1h3IVjyPk= X-Received: by 2002:a9d:3634:: with SMTP id w49mr11712892otb.11.1539617325667; Mon, 15 Oct 2018 08:28:45 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Mon, 15 Oct 2018 17:28:34 +0200 Message-ID: Subject: =?UTF-8?Q?Terminal_theme_tool_=E2=80=93_a_workaround_for_lack_of_24=2D?= =?UTF-8?Q?bit_color_in_Zsh=3F?= To: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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[0m' 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[0m' sleep 2 echo -en '\e]P2aaaa00' --=20 Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org