Patrik Svensson 3f57df5af6 Modernization of the code base (#1993)
* Update packages
* Convert extension methods to extension blocks
* Move extension methods closer to what they are extending
* Use ArgumentNullException.ThrowIfNull
* Move WriteAnsi and ToAnsi methods to Spectre.Console namespace
* Make shared global state obsolete
* Make AnsiConsole.Clear an extension method
* Linting should not fail build
2026-01-05 00:32:54 +01:00
2026-01-04 11:51:47 +01:00
2025-12-24 20:17:42 +01:00
2023-11-28 00:14:54 +01:00
2025-12-08 00:38:03 +01:00
2022-09-27 08:36:07 +02:00
2025-12-24 20:17:42 +01:00
2025-12-24 20:17:42 +01:00
2025-12-24 20:21:32 +01:00
2025-12-24 20:17:42 +01:00
2025-12-24 20:17:42 +01:00

Spectre.Console

Spectre.Console NuGet Version Netlify Status

A .NET library that makes it easier to create beautiful, cross platform, console applications.
It is heavily inspired by the excellent Python library, Rich. Detailed instructions for using Spectre.Console are located on the project website, https://spectreconsole.net

Table of Contents

  1. Features
  2. Installing
  3. Documentation
  4. Examples
  5. Code of Conduct
  6. .NET Foundation
  7. License

Features

  • Supports tables, grids, panels, and a Rich inspired markup language.
  • Supports the most common SRG parameters when it comes to text styling such as bold, dim, italic, underline, strikethrough, and blinking text.
  • Supports 3/4/8/24-bit colors in the terminal.
    The library will detect the capabilities of the current terminal and downgrade colors as needed.
  • Written with unit testing in mind.

Example

Important Notices

Important

We use the Top Issues Dashboard for tracking community demand. Please upvote 👍 the issues and pull requests you are interested in.

Installing

The fastest way of getting started using Spectre.Console is to install the NuGet package.

dotnet add package Spectre.Console

Documentation

The documentation for Spectre.Console can be found at https://spectreconsole.net

Examples

To see Spectre.Console in action, please see the examples repository.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

.NET Foundation

This project is supported by the .NET Foundation.

License

Copyright © Patrik Svensson, Phil Scott, Nils Andresen, Cédric Luthi, Frank Ray

Spectre.Console is provided as-is under the MIT license. For more information see LICENSE.

Description
A .NET library that makes it easier to create beautiful console applications.
Readme 21 MiB
Languages
C# 99.9%
PowerShell 0.1%