mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-24 12:12:51 +08:00

PNGs were ran through TinyPng. Table.gif was weighing in at over 1.7mb on my machine. Converted to webm and it's down to 80kb which is pretty nice for something on the home page. Other gifs didn't have that much of an improvement so I just left them as GIFs.
38 lines
1.6 KiB
Markdown
38 lines
1.6 KiB
Markdown
Title: Welcome
|
|
Order: 0
|
|
---
|
|
|
|
Spectre.Console is a `.NET Standard 2.0` library that makes it easier
|
|
to create beautiful console applications.
|
|
|
|
## Spectre.Console.AnsiConsole Features
|
|
|
|
* Easily output text with different colors and even styles such as bold, italic and blinking with a Rich inspired [markup language](markup).
|
|
* Supports `3`/`4`/`8`/`24`-bit colors in the terminal with auto-detection of the current terminal's capabilities.
|
|
* Render complex [widgets](widgets) such as [tables](widgets/table), [trees](widgets/tree), and even [ASCII images](widgets/canvas-image).
|
|
* Display progress for long running tasks with live displays of [progress](live/progress) and [status](live/status) controls.
|
|
* Prompt user input with strongly typed [text input](prompts/text) or via [single-item select](prompts/selection) and [multiple item select](prompts/multiselection) controls.
|
|
* Format .NET [exceptions](exceptions) with custom color coded themes and styles.
|
|
* Written with unit testing in mind.
|
|
|
|
Spectre.Console.AnsiConsole has been heavily inspired
|
|
by the excellent [Rich](https://github.com/willmcgugan/rich) library
|
|
for Python written by Will McGugan.
|
|
|
|
## Spectre.Console.Cli
|
|
|
|
* Create strongly typed settings and commands for parsing `args[]` to create complex command line applications like `git`, `gh`, or `dotnet`
|
|
|
|
## Examples
|
|
|
|

|
|
|
|
<video autoplay muted loop class="mt-4">
|
|
<source src="./assets/images/table.webm"
|
|
type="video/webm">
|
|
<source src="./assets/images/table.mp4"
|
|
type="video/mp4">
|
|
Sorry, your browser doesn't support embedded videos.
|
|
</video>
|
|
|