mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 05:18:16 +08:00
New doc theme (#387)
This commit is contained in:
@ -2,7 +2,7 @@ Title: Live Displays
|
||||
Order: 4
|
||||
---
|
||||
|
||||
<h1>Sections</h1>
|
||||
Live displays continue to redraw their contents until an action is complete.
|
||||
|
||||
<ul>
|
||||
@foreach (IDocument child in OutputPages.GetChildrenOf(Document))
|
||||
|
@ -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
|
||||
});
|
||||
```
|
||||
```
|
||||
|
@ -5,19 +5,19 @@ RedirectFrom: status
|
||||
|
||||
Spectre.Console can display information about long running tasks in the console.
|
||||
|
||||
<img src="../assets/images/status.gif" style="max-width: 100%;margin-bottom:20px;">
|
||||

|
||||
|
||||
<div class="alert alert-warning" role="alert">
|
||||
<i class="fas fa-exclamation-triangle icon-web"></i> The status display is not
|
||||
<?# Alert ?>
|
||||
The status display is not
|
||||
thread safe, and using it together with other interactive components such as
|
||||
prompts, progress displays or other status 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.
|
||||
|
||||
# Usage
|
||||
## Usage
|
||||
|
||||
```csharp
|
||||
// Synchronous
|
||||
@ -52,7 +52,7 @@ await AnsiConsole.Status()
|
||||
});
|
||||
```
|
||||
|
||||
# Configure
|
||||
## Configure
|
||||
|
||||
```csharp
|
||||
AnsiConsole.Status()
|
||||
@ -64,4 +64,4 @@ AnsiConsole.Status()
|
||||
// Omitted
|
||||
ctx.Refresh();
|
||||
});
|
||||
```
|
||||
```
|
||||
|
Reference in New Issue
Block a user