For terminal color standards, the strongest matches are fatih/color (This library provides the necessary tools to generate ANSI), chalk/chalk (Chalk is a comprehensive terminal styling library that provides) and textualize/rich (Rich is a comprehensive Python library that provides robust). crossterm-rs/crossterm and tartley/colorama round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Explore the best terminal color standards for your CLI tools. Compare top libraries by features and activity to find the best fit for your project.
This is an ANSI terminal color library and console output manager used for applying colors and text attributes to command line interface output. It functions as a terminal text styler and RGB color formatter, generating the escape codes necessary for foreground and background styling. The project supports 24-bit high-color RGB mapping for precise color rendering in compatible terminal emulators. It enables the creation of colorized text fragments that can be embedded into larger blocks of text or applied as global styles that persist across subsequent output streams. The library covers broad
This library provides the necessary tools to generate ANSI escape sequences and apply TrueColor or 256-color styling to terminal output, serving as a direct implementation of the requested color and formatting functionality.
Chalk is a Node.js console formatter and terminal styling library used to add colors and text modifiers to command line output. It functions as a tool for formatting strings with foreground colors, background tints, and text styles using ANSI escape sequences. The library includes a terminal color support detector that automatically determines the color depth and capabilities of the current environment. It features an ANSI color downsampler that converts RGB, Hex, or 256-color values to the nearest compatible format based on the detected terminal capabilities. The project provides capabiliti
Chalk is a comprehensive terminal styling library that provides robust support for ANSI escape sequences, TrueColor, and 256-color palettes, while automatically handling cross-platform capability detection and color downsampling.
Rich is a comprehensive library for building sophisticated command-line interfaces and terminal applications. It provides a robust console formatting engine and a layout framework that enables developers to render rich text, syntax-highlighted code, and complex data structures directly in the terminal. By utilizing a recursive constraint-based layout engine, the library allows for the creation of hierarchical grids, panels, and trees that maintain their structure even as terminal dimensions change. What distinguishes the library is its ability to manage persistent, real-time terminal interfac
Rich is a comprehensive Python library that provides robust support for ANSI escape sequences, TrueColor, and advanced text styling, making it a flagship tool for managing terminal output and formatting.
Crossterm is a cross-platform Rust library for terminal manipulation, providing a low-level interface for controlling terminal state, cursor movement, and text styling. It acts as a cross-platform TTY interface that handles raw mode, alternate screen buffers, and terminal window metadata across different operating systems. The library includes an ANSI text styling engine for applying RGB colors and text attributes to console output, as well as a terminal input event handler for capturing keyboard presses, mouse movements, and terminal resize events in real time. It also provides system clipbo
Crossterm is a comprehensive cross-platform library that provides the necessary low-level primitives for ANSI escape sequences, text styling, and full 24-bit TrueColor support in terminal applications.
Colorama is a Python terminal styling library and cross-platform console utility that translates ANSI escape sequences into native system calls. It acts as a terminal output stream wrapper, intercepting and processing control codes to ensure consistent text formatting and styling across different operating systems. The library standardizes terminal output by mapping abstract escape sequences to specific operating system APIs, enabling reliable coloring and cursor positioning in environments that lack native ANSI support. It utilizes runtime platform dispatching to apply the appropriate logic
Colorama is a cross-platform library that enables consistent terminal styling and ANSI escape sequence handling by translating them into native system calls, making it a direct fit for managing terminal output.
spectre.console is a .NET console UI library and command-line interface framework used to build rich user interfaces for console applications. It functions as a console text markup processor and terminal layout engine to provide advanced text styling and structured data organization. The library enables the creation of visually organized interfaces using a system of tables, grids, and panels. It utilizes a dedicated markup language to apply colors and styles to terminal output, allowing for the rendering of formatted text and complex visual structures.
This library provides a comprehensive suite for terminal text styling, ANSI escape sequence rendering, and TrueColor support, making it a robust tool for managing console output and formatting.
This project is a framework for composing terminal interfaces through declarative styling and a grid-based layout engine. It provides a comprehensive toolkit for building responsive command-line applications by managing ANSI escape sequences, color profiles, and text rendering to ensure consistent visual output across different terminal environments. The library distinguishes itself through its ability to automatically detect terminal capabilities and background themes, allowing it to adjust color schemes and downsample profiles for optimal readability. It utilizes a layered composition model
This library provides a declarative framework for terminal styling and layout that natively handles ANSI escape sequences, TrueColor, and cross-platform terminal capability detection, making it a robust tool for managing terminal output.
xterm.js is a high-performance terminal emulator library designed for web applications. It provides a core rendering engine and a modular interface that allows developers to embed fully functional, interactive command-line interfaces directly into browser environments. By processing standard terminal data streams and managing internal buffer states, the library enables the creation of rich, text-based user interfaces that support standard terminal protocols. The project distinguishes itself through a highly extensible architecture that allows for deep customization of terminal behavior. Devel
This is a full-featured terminal emulator library for the web that natively handles ANSI escape sequences, 24-bit TrueColor, and text styling to render terminal output in browser environments.
This project is a terminal user interface library for Node.js, designed to facilitate the construction of interactive command-line applications. It provides a comprehensive toolkit of high-level widgets that abstract complex terminal escape codes and rendering logic, allowing developers to build functional interfaces using reusable components. The framework distinguishes itself by implementing a box-model-based layout engine and a virtual DOM-style reconciliation system. These mechanisms enable responsive design patterns—such as percentage-based sizing and relative positioning—to function wit
This library provides a comprehensive abstraction for terminal styling, ANSI escape sequences, and color support, serving as a robust framework for building interactive terminal interfaces.
tcell is a Go terminal user interface library and framework for building cell-based applications. It functions as a terminal emulator backend and input processor, utilizing a change-based diffing engine to manage screen state and efficiently render updates. The project is distinguished by its pluggable backend abstraction, which allows terminal interfaces to be rendered across physical terminals or compiled into WebAssembly for web browser display. It provides a virtual screen simulation to enable programmatic event injection and output inspection for automated application testing. Its capab
This library provides a robust abstraction for terminal cell-based rendering, including comprehensive support for ANSI escape sequences, TrueColor, and text styling across various terminal environments.
termbox-go is a Go terminal user interface library and cross-platform terminal emulator abstraction. It provides a system for creating text-based graphical interfaces by managing a terminal cell buffer and handling raw input events. The library functions as a terminal cell buffer manager and input handler. It maintains an internal grid of characters and colors, using a back buffer to synchronize updates to the physical screen and translate keyboard and mouse events into structured data. Its capability surface covers text user interface rendering and terminal display management, including cur
This library provides a cross-platform abstraction for terminal display management and cell-based rendering, including the necessary support for color mapping and text styling required to build terminal interfaces.
colors.js is a Node.js terminal color library and console text styling tool. It serves as an ANSI escape code wrapper, providing a high-level API to apply foreground and background colors, styles, and decorative patterns to console output. The library includes a terminal output formatter capable of creating specialized visual effects, such as rainbow and zebra patterns. It employs a mechanism to automatically detect terminal color support or allow for manual overrides of visual styling. The tool covers a broad range of text formatting, including text emphasis attributes like bold, italic, un
This library provides a comprehensive API for applying ANSI escape sequences, text styling, and color formatting to console output in Node.js environments.
(Rust) Coloring terminal so simple you already know how to do it !
This library provides a straightforward way to apply ANSI colors and text styles to terminal output in Rust, covering the core requirements for terminal styling and color support.
🎨 Terminal color rendering library, support 8/16 colors, 256 colors, RGB color rendering output, support Print/Sprintf methods, compatible with Windows. GO CLI 控制台颜色渲染工具库,支持16色,256色,RGB色彩渲染输出,使用类似于 Print/Sprintf,兼容并支持 Windows 环境的色彩渲染
This library provides a comprehensive set of tools for terminal color rendering, including support for 8/16, 256, and TrueColor (RGB) output with cross-platform compatibility for Go-based CLI applications.
Ruby string class extension. It add some methods to set color, background color and text effect on console easier using ANSI escape sequences.
This Ruby library provides a straightforward way to apply ANSI colors, background colors, and text effects to console output, serving as a practical tool for terminal styling.
| Repositorio | Estrellas | Lenguaje | Licencia | Último push |
|---|---|---|---|---|
| fatih/color | 7.9K | Go | mit | |
| chalk/chalk | 23.3K | JavaScript | MIT | |
| textualize/rich | 56.6K | Python | MIT | |
| crossterm-rs/crossterm | 4.1K | Rust | MIT | |
| tartley/colorama | 3.8K | Python | BSD-3-Clause | |
| spectresystems/spectre.console | 11.5K | C# | MIT | |
| charmbracelet/lipgloss | 10.6K | Go | mit | |
| xtermjs/xterm.js | 20.8K | TypeScript | MIT | |
| chjj/blessed | 11.9K | JavaScript | NOASSERTION | |
| gdamore/tcell | 5.1K | Go | apache-2.0 |