zsh-users
 help / color / mirror / code / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Thayne <astrothayne@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Using 8bit colors in prompt expansion on a terminal with 24bit color support
Date: Tue, 7 Apr 2020 08:11:13 +0200	[thread overview]
Message-ID: <CAN=4vMpGV=RrWFmniDWvOP8R0q+MLwN3UJuEG2LD_yts5AZGaA@mail.gmail.com> (raw)
In-Reply-To: <CALbpH+iPSD-Pn81vHzaMv=kDciCv95nxxH9JCzYHk3XWJjTSxg@mail.gmail.com>

On Tue, Apr 7, 2020 at 1:53 AM Thayne <astrothayne@gmail.com> wrote:
>
> https://lists.gnu.org/archive/html/bug-ncurses/2019-03/msg00009.html

Wow, didn't know about this. This behavior is quite surprising to me.

    TERM=xterm-direct print -P '%F{226}this is blue%f'
    TERM=xterm-256color print -P '%F{226}this is yellow%f'

I cannot say whether it's intended but I suspect that a lot of code
that uses color codes above 7 won't work correctly with
TERM=xterm-direct.

Roman.

P.S.

Lean style in powerlevel10k has 8-color option. With a decent terminal
color scheme it looks alright.

  reply	other threads:[~2020-04-07  6:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-06 23:52 Thayne
2020-04-07  6:11 ` Roman Perepelitsa [this message]
2020-04-07 10:57 ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN=4vMpGV=RrWFmniDWvOP8R0q+MLwN3UJuEG2LD_yts5AZGaA@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=astrothayne@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).