spectre.console README

The project's README from github.com/spectreconsole/spectre.console. As one markdown file: README.md.

Spectre.Console

Spectre.Console NuGet Version

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

Example

Important Notices

[!IMPORTANT]
We use the Top Issues Dashboard for tracking community demand. Please upvote :+1: 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.

Translations

License

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

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

spectre.console (spectreconsole/spectre.console)

Searching Database…

这是什么?Spectre.Console 是一个 .NET 类库,可以更轻松地构建美观、跨平台的控制台应用程序,支持表格、面板、标记语法和富文本样式。
它是框架还是类库?它是一个可以添加到你自己的 .NET 控制台应用中的类库,而不是独立应用程序或完整的框架。
我要怎样把它添加到项目中?将 Spectre.Console NuGet 包安装到你的 .NET 项目中即可,这是最快上手的方式。
除了 .NET SDK,还需要别的东西吗?除 NuGet 包本身外不需要额外的工具,不过它在某些功能中会在内部使用 SixLabors.ImageSharp。
我的颜色在任何终端里都能正常显示吗?该库会自动检测终端的能力,并按需降级颜色,因此输出会根据 3/4/8/24 位色彩的支持情况进行调整,但并不保证在所有地方都完全还原。
在 Windows、macOS 和 Linux 上的表现一样吗?是的,它设计为可在任何能运行 .NET 的操作系统上,跨平台使用于控制台应用。
Spectre.Console 的设计受到了什么启发?它很大程度上受到了流行的 Python 库 Rich 的启发,为 .NET 控制台应用带来了类似的富文本标记和布局方式。
我可以用它构建哪些界面元素?表格、网格、面板以及其他可视化组件,还有受 Rich 启发的标记语言,可以为文本添加粗体、斜体、下划线、删除线和闪烁等效果。
在使用之前,我在哪里能看到它的实际效果?有一个单独的示例仓库,展示了 Spectre.Console 在真实控制台应用中的各种功能。
这个项目还在积极维护吗?是的,它得到 .NET 基金会的支持,并使用 Top Issues Dashboard 来跟踪社区提出的功能请求和问题修复。
What are similar projects?Terminal.Gui, efcore, rich, Cpp2IL, ratatui, uno, Avalonia, roslyn
Size
16.1 MB
Stars
11.7K
Updated
CommitOct 05
Age
6y
Commits · 90 Days