supports-color - Detect whether a terminal supports color

  •        15

Returns an Object with a stdout and stderr property for testing either streams. Each property is an Object, or false if color is not supported.It obeys the --color and --no-color CLI flags.

https://github.com/chalk/supports-color

Dependencies:

has-flag : ^3.0.0

Tags
Implementation
License
Platform

   




Related Projects

colorful - Terminal string styling done right, in Python :snake: :tada:

  •    Python

Note: on a Windows system it will install colorama as a dependency to ensure proper ANSI support. These days terminals not only support the ancient 8 ANSI colors but often they support up to 16 Million colors with true color. And if they don't support true color they might support the 256 ANSI color palette at least.

cli-color - Colors and formatting for the console

  •    Javascript

Colors, formatting and other goodies for the console. This package won't mess with built-ins and provides neat way to predefine formatting patterns, see below. Styles will display correctly if font used in your console supports them.

Chalk - Terminal string styling done right

  •    Javascript

Chalk comes with an easy to use composable API where you just chain and nest the styles you want. Chain styles and call the last one as a method with a string argument. Order doesn't matter, and later styles take precedent in case of a conflict. This simply means that chalk.red.yellow.green is equivalent to chalk.green.


kleur - The fastest Node.js library for formatting terminal text with ANSI colors~!

  •    Javascript

Toggle color support as needed; kleur assumes it's always enabled. Any kleur method returns a String (when invoked, not chained). It's up to the developer to pass the output to destinations like console.log, process.stdout.write, etc.

xterm-color-table.vim - All 256 xterm colors with their RGB equivalents, right in Vim!

  •    VimL

All 256 xterm colors with their RGB equivalents, right in Vim!

tmux-colors-solarized - A color theme for the tmux terminal multiplexer using Ethan Schoonover’s Solarized color scheme

  •    Shell

A tmux solarized theme using Ethan Schoonover’s Solarized color scheme. In most cases, you have to force tmux to assume the terminal supports 256 colours. For this, start tmux as tmux -2.

one-color - An OO-based JavaScript color parser/computation toolkit with support for RGB, HSV, HSL, CMYK, and alpha channels

  •    Javascript

Javascript color object with implicit color space conversions. Supports RGB, HSV, HSL and CMYK with alpha channel.

papercolor-theme - :art: Light & Dark Vim color schemes inspired by Google's Material Design

  •    Vim

Support True color / GUI-color and identical 256-color that the design is based on. Also gracefully support down to 16-color terminal, which will use terminal native colors. You need to change the terminal colors to PaperColor palette.

jellybeans.vim - A colorful, dark color scheme for Vim.

  •    Vim

A colorful, dark color scheme, inspired by ir_black and twilight. Designed primarily for a graphical Vim, but includes support for 256, 88, 16, and 8 color terminals. On a 16 or 8 color terminal, replace its colors with those in ansi-term-colors.txt for best results.

chalk - Intuitive package for prettifying terminal/console output

  •    Go

Chalk is a go package for styling console/terminal output. The api is pretty clean, there are default Colors and TextStyles which can be mixed to create more intense Styles. Styles and Colors can be printed in normal strings (i.e. fmt.Sprintf(chalk.Red)), but Styles, Colors and TextStyles are more meant to be used to style specific text segments (i.e. fmt.Println(chalk.Red.Color("this is red")) or fmt.Println(myStyle.Style("this is blue text that is underlined"))).

web-terminal - Web-Terminal is a terminal server that provides remote CLI via standard web browser and HTTP protocol

  •    Javascript

Web-Terminal is a very lightweight terminal server that provides remote CLI via standard web browser and HTTP protocol. It works on all operating systems supported by Node.js, it doesn't depend on native modules. Fast and easy to install. Supports mutiple sessions. NOTE: It is not a TTY emulator. It doesn't support complex TTY interaction like in vi, nano and etc. It's good only for simple command/response cases. For fully featured TTY emulator I would suggest Wetty project.

node-charm - ansi control sequences for terminal cursor hopping and colors

  •    Javascript

Use ansi terminal characters to write colors and cursor positions.Charm objects pass along the data events from their input stream except for events generated from querying the terminal device.

color-names - Massive color dictionary 🌈

  •    Javascript

A handpicked list of 17530 unique color names from various sources and thousands of user submissions. Try it yourself or read the full list. The aim of this project is to create as large a list of color names as possible. We've merged various lists, modified the names when there were duplicates with different hex values, and shifted the colors a bit when there were identical colors with different names.

rang - A Minimal, Header only Modern c++ library for terminal goodies 💄✨

  •    C++

rang only depends on C++ standard library, unistd.h system header on unix and windows.h & io.h system headers on windows based systems. In other words, you don't need any 3rd party dependencies. rang is a single header-only library. Put rang.hpp in the include folder directly into the project source tree or somewhere reachable from your project.

LS_COLORS - A collection of LS_COLORS definitions; needs your contribution!

  •    Shell

This is a collection of extension:color mappings, suitable to use as your LS COLORS environment variable. Most of them use the extended color map, described in the ECMA-48 document; in other words, you'll need a terminal with capabilities of displaying 256 colors. As of this writing, around 300 different filetypes/extensions is supported. That's indeed a lot of extensions, but there's a lot more! Your help is greatly appreciated.

rickrollrc - Rick Astley invades your terminal.

  •    Shell

Bash script which rickrolls your terminal by playing Rick Astley’s “Never Gonna Give You Up” with ANSI 256-color coded UTF-8 characters + audio (if available). For a salutary lesson in the importance of taking care what you execute in your terminal, inspired by the classic sl, save the command in a shell script called suod somewhere on your PATH. It’s recommended to download the script for faster startup, to avoid spoiling the surprise when you accidentally execute it for the nth time (and also, unless you really like living dangerously, for security, in case we are demonically possessed to replace roll.sh with something evil).

shml - SHell Markup Language | Style Framework for The Terminal

  •    Shell

SHML is a shell framework for faster and easier script development. HTML has CSS, terminals have "ANSI/VT100 Control Sequences". SHML makes is easy to apply some style to your shell scripts without trying to remember that Yellow = \033[33m instead Yellow is $(color yellow).

cfonts - Sexy fonts for the console

  •    Javascript

This is a silly little command line tool for sexy fonts in the console. Give your cli some love.To install the CLI app, simply NPM install it globally.





We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.