# True Color Support True Colour (16 million colours) support in various terminal applications and terminals: - https://gist.github.com/lowply/a709d7fd39f20e42ca522d4003e1f95b - https://github.com/termstandard/colors # Get Terminal Type Query The standard way to get this information uses [[ANSI - Control Codes#Prefixes|the DCS prefix]] paired with two additional characters often documented as: ``` DCS > P ``` Using a [[POSIX Shell]] this can be realized with the following command which dumps the result as [[STDIN]] (ie like typed text, not output): ```sh echo -e "\e[>q" ``` See also: [[tmux - Terminal Multiplexer#Get Connected Terminal Emulator Info]] # Control Code Documentation by Terminal | Terminal | Link(s) | | ----------------------------- | --------------------------------------------------------------------------------------------------- | | [[Wezterm]] | [Wezterm Escape Sequences](https://wezfurlong.org/wezterm/escape-sequences.html) | | [[XTerm]] | [XTerm Control Sequences](https://invisible-island.net/xterm/ctlseqs/ctlseqs.txt) | | [[iTerm2]] | [Proprietary Escape Codes](https://iterm2.com/documentation-escape-codes.html) | | [[Kitty Term]] | [Terminal Protocol Extensions](https://sw.kovidgoyal.net/kitty/protocol-extensions/) | | [[Enlightenment Terminology]] | [Extended Escapes](https://github.com/borisfaure/terminology#extended-escapes-for-terminology-only) | | [[Alacritty]] | [Escape Support](https://github.com/alacritty/alacritty/blob/master/docs/escape_support.md) | # References - https://docs.google.com/spreadsheets/d/19W-lXWS9jYwqCK-LwgYo31GucPPxYVld_hVEcfpNpXg/edit#gid=1724051764 - https://en.wikipedia.org/wiki/ANSI_escape_code