mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
New doc theme (#387)
This commit is contained in:
@ -5,21 +5,21 @@ RedirectFrom: progress
|
||||
|
||||
Spectre.Console can display information about long running tasks in the console.
|
||||
|
||||
<img src="../assets/images/progress.png" style="max-width: 100%;margin-bottom:20px;">
|
||||

|
||||
|
||||
<div class="alert alert-warning" role="alert">
|
||||
<i class="fas fa-exclamation-triangle icon-web"></i> The progress display is not
|
||||
<?# Alert ?>
|
||||
The progress display is not
|
||||
thread safe, and using it together with other interactive components such as
|
||||
prompts, status displays or other progress displays are not supported.
|
||||
</div>
|
||||
<?#/ Alert ?>
|
||||
|
||||
If the current terminal isn't considered "interactive", such as when running
|
||||
in a continuous integration system, or the terminal can't display
|
||||
ANSI control sequence, any progress will be displayed in a simpler way.
|
||||
|
||||
<img src="../assets/images/progress_fallback.png" style="max-width: 100%;">
|
||||

|
||||
|
||||
# Usage
|
||||
## Usage
|
||||
|
||||
```csharp
|
||||
// Synchronous
|
||||
@ -63,7 +63,7 @@ await AnsiConsole.Progress()
|
||||
});
|
||||
```
|
||||
|
||||
# Configure
|
||||
## Configure
|
||||
|
||||
```csharp
|
||||
// Asynchronous
|
||||
@ -83,4 +83,4 @@ AnsiConsole.Progress()
|
||||
{
|
||||
// Omitted
|
||||
});
|
||||
```
|
||||
```
|
||||
|
Reference in New Issue
Block a user