From 8477126ae4c55d41adb9153f4632c09fffed4626 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 7 Apr 2016 18:26:10 +0200 Subject: Correct true-color statement in set_color docs - OSX Terminal does not support it - We do some detection --- doc_src/set_color.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc_src') diff --git a/doc_src/set_color.txt b/doc_src/set_color.txt index 087c9ac9..d08373ca 100644 --- a/doc_src/set_color.txt +++ b/doc_src/set_color.txt @@ -44,6 +44,6 @@ set_color normal; echo "Normal is nice" # This will reset background, too Fish uses a heuristic to decide if your terminal supports the 256 color palette (as opposed to the more limited 16 color palette of older terminals). If you've done the equivalent of `set fish_term256 1` that will be true. If the $TERM value contains "256color" (e.g., "xterm-256color") that will be true. If your $TERM value is "xterm" and $TERM_PROGRAM is not set to "Apple_Terminal" that will be true. If your terminal supports the full 256 color palette (which is pretty much every color terminal emulator written in the past decade) you should ensure one of the aforementioned conditions is true. -Many terminals support 24-bit (i.e., true-color) color escape sequences. This includes modern xterms, Gnome Terminal, KDE Konsole, and OS X Terminal and iTerm2. Fish does not currently auto-detect whether a given `$TERM` supports 24-bit colors. You can explicitly enable that support via `set fish_term24bit 1`. If you do so fish will not map your RGB color values to the closest known matching color in the ANSI X3.64 color palette. +Many terminals support 24-bit (i.e., true-color) color escape sequences. This includes modern xterms, Gnome Terminal, KDE Konsole, and iTerm2. Fish currently does some limited attempts to detect whether a given `$TERM` supports 24-bit colors. You can explicitly enable that support via `set fish_term24bit 1`. If you do so fish will not map your RGB color values to the closest known matching color in the ANSI X3.64 color palette. The `set_color` command uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and incomplete terminfo databases, and may lack color information for terminals that support it. Fish will use the [ANSI X3.64](https://en.wikipedia.org/wiki/ANSI_escape_code) escape sequences if the terminfo definition says less than 256 colors are supported; otherwise it will use the terminfo definition. -- cgit v1.2.3