Skip to content

spectreconsole/spectre.console

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

So we can benefit from roslyn issue 69309
and have consistent EOL sequences, even on
auto-generated using statements.
c62f79e

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
November 19, 2023 12:18
November 28, 2023 00:14
November 28, 2023 00:14
November 28, 2023 00:14
src
November 28, 2023 00:14
November 28, 2023 00:14
April 24, 2021 22:20
February 16, 2022 00:35
April 9, 2021 08:45
November 10, 2022 12:01
November 10, 2022 12:01
November 24, 2022 14:02
November 10, 2022 12:01
November 10, 2022 12:01
November 20, 2023 13:14
November 14, 2023 22:24

Spectre.Console

Spectre.Console NuGet Version Spectre.Console CLI 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 Rich library for Python. For detailed usage instructions, please refer to the documentation at https://spectreconsole.net/.

Table of Contents

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

Features

  • Written with unit testing in mind.
  • 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.

Example

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, install the dotnet-example global tool.

> dotnet tool restore

Now you can list available examples in this repository:

> dotnet example

And to run an example:

> dotnet example tables

Sponsors

The following people are sponsoring Spectre.Console to show their support and to ensure the longevity of the project.

We really appreciate it.
Thank you very much!

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

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