mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-08-04 21:02:27 +08:00
Add parser and renderer for markup language
This commit is contained in:

committed by
Patrik Svensson

parent
b72a695c35
commit
0986a5f744
@ -12,7 +12,7 @@ namespace Spectre.Console.Internal
|
||||
throw new ArgumentNullException(nameof(console));
|
||||
}
|
||||
|
||||
var current = console.Foreground;
|
||||
var current = foreground ? console.Foreground : console.Background;
|
||||
console.SetColor(color, foreground);
|
||||
return new ColorScope(console, current, foreground);
|
||||
}
|
||||
|
Reference in New Issue
Block a user