Make property names for the color VT sequences consistent with documentations (#16212)
This commit is contained in:
parent
a32700a1c1
commit
c8984c0517
|
@ -2082,37 +2082,37 @@ namespace System.Management.Automation.Runspaces
|
|||
.AddItemScriptBlock(@"""$($_.FileInfo.Executable)$($_.FileInfo.Executable.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "FileInfo.Executable")
|
||||
.AddItemScriptBlock(@"""$([string]::Join(',',$_.FileInfo.Extension.Keys))""", label: "FileInfo.Extension")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.Black)$($_.Foreground.Black.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.Black")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.BrightBlack)$($_.Foreground.BrightBlack.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.BrightBlack")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.White)$($_.Foreground.White.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.White")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.DarkGray)$($_.Foreground.DarkGray.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.DarkGray")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.LightGray)$($_.Foreground.LightGray.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.LightGray")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.BrightWhite)$($_.Foreground.BrightWhite.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.BrightWhite")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.Red)$($_.Foreground.Red.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.Red")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.LightRed)$($_.Foreground.LightRed.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.LightRed")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.BrightRed)$($_.Foreground.BrightRed.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.BrightRed")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.Magenta)$($_.Foreground.Magenta.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.Magenta")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.LightMagenta)$($_.Foreground.LightMagenta.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.LightMagenta")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.BrightMagenta)$($_.Foreground.BrightMagenta.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.BrightMagenta")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.Blue)$($_.Foreground.Blue.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.Blue")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.LightBlue)$($_.Foreground.LightBlue.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.LightBlue")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.BrightBlue)$($_.Foreground.BrightBlue.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.BrightBlue")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.Cyan)$($_.Foreground.Cyan.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.Cyan")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.LightCyan)$($_.Foreground.LightCyan.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.LightCyan")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.BrightCyan)$($_.Foreground.BrightCyan.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.BrightCyan")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.Green)$($_.Foreground.Green.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.Green")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.LightGreen)$($_.Foreground.LightGreen.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.LightGreen")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.BrightGreen)$($_.Foreground.BrightGreen.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.BrightGreen")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.Yellow)$($_.Foreground.Yellow.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.Yellow")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.LightYellow)$($_.Foreground.LightYellow.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.LightYellow")
|
||||
.AddItemScriptBlock(@"""$($_.Foreground.BrightYellow)$($_.Foreground.BrightYellow.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Foreground.BrightYellow")
|
||||
.AddItemScriptBlock(@"""$($_.Background.Black)$($_.Background.Black.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.Black")
|
||||
.AddItemScriptBlock(@"""$($_.Background.BrightBlack)$($_.Background.BrightBlack.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.BrightBlack")
|
||||
.AddItemScriptBlock(@"""$($_.Background.White)$($_.Background.White.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.White")
|
||||
.AddItemScriptBlock(@"""$($_.Background.DarkGray)$($_.Background.DarkGray.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.DarkGray")
|
||||
.AddItemScriptBlock(@"""$($_.Background.LightGray)$($_.Background.LightGray.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.LightGray")
|
||||
.AddItemScriptBlock(@"""$($_.Background.BrightWhite)$($_.Background.BrightWhite.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.BrightWhite")
|
||||
.AddItemScriptBlock(@"""$($_.Background.Red)$($_.Background.Red.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.Red")
|
||||
.AddItemScriptBlock(@"""$($_.Background.LightRed)$($_.Background.LightRed.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.LightRed")
|
||||
.AddItemScriptBlock(@"""$($_.Background.BrightRed)$($_.Background.BrightRed.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.BrightRed")
|
||||
.AddItemScriptBlock(@"""$($_.Background.Magenta)$($_.Background.Magenta.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.Magenta")
|
||||
.AddItemScriptBlock(@"""$($_.Background.LightMagenta)$($_.Background.LightMagenta.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.LightMagenta")
|
||||
.AddItemScriptBlock(@"""$($_.Background.BrightMagenta)$($_.Background.BrightMagenta.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.BrightMagenta")
|
||||
.AddItemScriptBlock(@"""$($_.Background.Blue)$($_.Background.Blue.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.Blue")
|
||||
.AddItemScriptBlock(@"""$($_.Background.LightBlue)$($_.Background.LightBlue.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.LightBlue")
|
||||
.AddItemScriptBlock(@"""$($_.Background.BrightBlue)$($_.Background.BrightBlue.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.BrightBlue")
|
||||
.AddItemScriptBlock(@"""$($_.Background.Cyan)$($_.Background.Cyan.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.Cyan")
|
||||
.AddItemScriptBlock(@"""$($_.Background.LightCyan)$($_.Background.LightCyan.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.LightCyan")
|
||||
.AddItemScriptBlock(@"""$($_.Background.BrightCyan)$($_.Background.BrightCyan.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.BrightCyan")
|
||||
.AddItemScriptBlock(@"""$($_.Background.Green)$($_.Background.Green.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.Green")
|
||||
.AddItemScriptBlock(@"""$($_.Background.LightGreen)$($_.Background.LightGreen.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.LightGreen")
|
||||
.AddItemScriptBlock(@"""$($_.Background.BrightGreen)$($_.Background.BrightGreen.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.BrightGreen")
|
||||
.AddItemScriptBlock(@"""$($_.Background.Yellow)$($_.Background.Yellow.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.Yellow")
|
||||
.AddItemScriptBlock(@"""$($_.Background.LightYellow)$($_.Background.LightYellow.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.LightYellow")
|
||||
.AddItemScriptBlock(@"""$($_.Background.BrightYellow)$($_.Background.BrightYellow.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Background.BrightYellow")
|
||||
.EndEntry()
|
||||
.EndList());
|
||||
}
|
||||
|
@ -2185,46 +2185,46 @@ namespace System.Management.Automation.Runspaces
|
|||
ListControl.Create()
|
||||
.StartEntry()
|
||||
.AddItemScriptBlock(@"""$($_.Black)$($_.Black.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Black")
|
||||
.AddItemScriptBlock(@"""$($_.BrightBlack)$($_.BrightBlack.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightBlack")
|
||||
.AddItemScriptBlock(@"""$($_.White)$($_.White.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "White")
|
||||
.AddItemScriptBlock(@"""$($_.DarkGray)$($_.DarkGray.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "DarkGray")
|
||||
.AddItemScriptBlock(@"""$($_.LightGray)$($_.LightGray.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightGray")
|
||||
.AddItemScriptBlock(@"""$($_.BrightWhite)$($_.BrightWhite.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightWhite")
|
||||
.AddItemScriptBlock(@"""$($_.Red)$($_.Red.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Red")
|
||||
.AddItemScriptBlock(@"""$($_.LightRed)$($_.LightRed.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightRed")
|
||||
.AddItemScriptBlock(@"""$($_.BrightRed)$($_.BrightRed.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightRed")
|
||||
.AddItemScriptBlock(@"""$($_.Magenta)$($_.Magenta.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Magenta")
|
||||
.AddItemScriptBlock(@"""$($_.LightMagenta)$($_.LightMagenta.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightMagenta")
|
||||
.AddItemScriptBlock(@"""$($_.BrightMagenta)$($_.BrightMagenta.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightMagenta")
|
||||
.AddItemScriptBlock(@"""$($_.Blue)$($_.Blue.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Blue")
|
||||
.AddItemScriptBlock(@"""$($_.LightBlue)$($_.LightBlue.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightBlue")
|
||||
.AddItemScriptBlock(@"""$($_.BrightBlue)$($_.BrightBlue.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightBlue")
|
||||
.AddItemScriptBlock(@"""$($_.Cyan)$($_.Cyan.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Cyan")
|
||||
.AddItemScriptBlock(@"""$($_.LightCyan)$($_.LightCyan.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightCyan")
|
||||
.AddItemScriptBlock(@"""$($_.BrightCyan)$($_.BrightCyan.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightCyan")
|
||||
.AddItemScriptBlock(@"""$($_.Green)$($_.Green.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Green")
|
||||
.AddItemScriptBlock(@"""$($_.LightGreen)$($_.LightGreen.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightGreen")
|
||||
.AddItemScriptBlock(@"""$($_.BrightGreen)$($_.BrightGreen.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightGreen")
|
||||
.AddItemScriptBlock(@"""$($_.Yellow)$($_.Yellow.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Yellow")
|
||||
.AddItemScriptBlock(@"""$($_.LightYellow)$($_.LightYellow.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightYellow")
|
||||
.AddItemScriptBlock(@"""$($_.BrightYellow)$($_.BrightYellow.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightYellow")
|
||||
.EndEntry()
|
||||
.EndList());
|
||||
}
|
||||
|
||||
private static IEnumerable<FormatViewDefinition> ViewsOf_System_Management_Automation_PSStyleBackgroundColor()
|
||||
{
|
||||
yield return new FormatViewDefinition("System.Management.Automation.PSStyle+ForegroundColor",
|
||||
yield return new FormatViewDefinition("System.Management.Automation.PSStyle+BackgroundColor",
|
||||
ListControl.Create()
|
||||
.StartEntry()
|
||||
.AddItemScriptBlock(@"""$($_.Black)$($_.Black.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Black")
|
||||
.AddItemScriptBlock(@"""$($_.BrightBlack)$($_.BrightBlack.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightBlack")
|
||||
.AddItemScriptBlock(@"""$($_.White)$($_.White.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "White")
|
||||
.AddItemScriptBlock(@"""$($_.DarkGray)$($_.DarkGray.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "DarkGray")
|
||||
.AddItemScriptBlock(@"""$($_.LightGray)$($_.LightGray.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightGray")
|
||||
.AddItemScriptBlock(@"""$($_.BrightWhite)$($_.BrightWhite.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightWhite")
|
||||
.AddItemScriptBlock(@"""$($_.Red)$($_.Red.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Red")
|
||||
.AddItemScriptBlock(@"""$($_.LightRed)$($_.LightRed.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightRed")
|
||||
.AddItemScriptBlock(@"""$($_.BrightRed)$($_.BrightRed.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightRed")
|
||||
.AddItemScriptBlock(@"""$($_.Magenta)$($_.Magenta.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Magenta")
|
||||
.AddItemScriptBlock(@"""$($_.LightMagenta)$($_.LightMagenta.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightMagenta")
|
||||
.AddItemScriptBlock(@"""$($_.BrightMagenta)$($_.BrightMagenta.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightMagenta")
|
||||
.AddItemScriptBlock(@"""$($_.Blue)$($_.Blue.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Blue")
|
||||
.AddItemScriptBlock(@"""$($_.LightBlue)$($_.LightBlue.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightBlue")
|
||||
.AddItemScriptBlock(@"""$($_.BrightBlue)$($_.BrightBlue.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightBlue")
|
||||
.AddItemScriptBlock(@"""$($_.Cyan)$($_.Cyan.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Cyan")
|
||||
.AddItemScriptBlock(@"""$($_.LightCyan)$($_.LightCyan.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightCyan")
|
||||
.AddItemScriptBlock(@"""$($_.BrightCyan)$($_.BrightCyan.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightCyan")
|
||||
.AddItemScriptBlock(@"""$($_.Green)$($_.Green.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Green")
|
||||
.AddItemScriptBlock(@"""$($_.LightGreen)$($_.LightGreen.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightGreen")
|
||||
.AddItemScriptBlock(@"""$($_.BrightGreen)$($_.BrightGreen.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightGreen")
|
||||
.AddItemScriptBlock(@"""$($_.Yellow)$($_.Yellow.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "Yellow")
|
||||
.AddItemScriptBlock(@"""$($_.LightYellow)$($_.LightYellow.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "LightYellow")
|
||||
.AddItemScriptBlock(@"""$($_.BrightYellow)$($_.BrightYellow.Replace(""""`e"""",'`e'))$($PSStyle.Reset)""", label: "BrightYellow")
|
||||
.EndEntry()
|
||||
.EndList());
|
||||
}
|
||||
|
|
|
@ -53,19 +53,9 @@ namespace System.Management.Automation
|
|||
public string Black { get; } = "\x1b[30m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color blue.
|
||||
/// Gets the color red.
|
||||
/// </summary>
|
||||
public string Blue { get; } = "\x1b[34m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color cyan.
|
||||
/// </summary>
|
||||
public string Cyan { get; } = "\x1b[36m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color dark gray.
|
||||
/// </summary>
|
||||
public string DarkGray { get; } = "\x1b[90m";
|
||||
public string Red { get; } = "\x1b[31m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color green.
|
||||
|
@ -73,39 +63,14 @@ namespace System.Management.Automation
|
|||
public string Green { get; } = "\x1b[32m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light blue.
|
||||
/// Gets the color yellow.
|
||||
/// </summary>
|
||||
public string LightBlue { get; } = "\x1b[94m";
|
||||
public string Yellow { get; } = "\x1b[33m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light cyan.
|
||||
/// Gets the color blue.
|
||||
/// </summary>
|
||||
public string LightCyan { get; } = "\x1b[96m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light gray.
|
||||
/// </summary>
|
||||
public string LightGray { get; } = "\x1b[97m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light green.
|
||||
/// </summary>
|
||||
public string LightGreen { get; } = "\x1b[92m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light magenta.
|
||||
/// </summary>
|
||||
public string LightMagenta { get; } = "\x1b[95m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light red.
|
||||
/// </summary>
|
||||
public string LightRed { get; } = "\x1b[91m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light yellow.
|
||||
/// </summary>
|
||||
public string LightYellow { get; } = "\x1b[93m";
|
||||
public string Blue { get; } = "\x1b[34m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color magenta.
|
||||
|
@ -113,9 +78,9 @@ namespace System.Management.Automation
|
|||
public string Magenta { get; } = "\x1b[35m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color read.
|
||||
/// Gets the color cyan.
|
||||
/// </summary>
|
||||
public string Red { get; } = "\x1b[31m";
|
||||
public string Cyan { get; } = "\x1b[36m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color white.
|
||||
|
@ -123,9 +88,44 @@ namespace System.Management.Automation
|
|||
public string White { get; } = "\x1b[37m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color yellow.
|
||||
/// Gets the color bright black.
|
||||
/// </summary>
|
||||
public string Yellow { get; } = "\x1b[33m";
|
||||
public string BrightBlack { get; } = "\x1b[90m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright red.
|
||||
/// </summary>
|
||||
public string BrightRed { get; } = "\x1b[91m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright green.
|
||||
/// </summary>
|
||||
public string BrightGreen { get; } = "\x1b[92m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright yellow.
|
||||
/// </summary>
|
||||
public string BrightYellow { get; } = "\x1b[93m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright blue.
|
||||
/// </summary>
|
||||
public string BrightBlue { get; } = "\x1b[94m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright magenta.
|
||||
/// </summary>
|
||||
public string BrightMagenta { get; } = "\x1b[95m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright cyan.
|
||||
/// </summary>
|
||||
public string BrightCyan { get; } = "\x1b[96m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright white.
|
||||
/// </summary>
|
||||
public string BrightWhite { get; } = "\x1b[97m";
|
||||
|
||||
/// <summary>
|
||||
/// Set as RGB (Red, Green, Blue).
|
||||
|
@ -168,19 +168,9 @@ namespace System.Management.Automation
|
|||
public string Black { get; } = "\x1b[40m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color blue.
|
||||
/// Gets the color red.
|
||||
/// </summary>
|
||||
public string Blue { get; } = "\x1b[44m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color cyan.
|
||||
/// </summary>
|
||||
public string Cyan { get; } = "\x1b[46m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color dark gray.
|
||||
/// </summary>
|
||||
public string DarkGray { get; } = "\x1b[100m";
|
||||
public string Red { get; } = "\x1b[41m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color green.
|
||||
|
@ -188,39 +178,14 @@ namespace System.Management.Automation
|
|||
public string Green { get; } = "\x1b[42m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light blue.
|
||||
/// Gets the color yellow.
|
||||
/// </summary>
|
||||
public string LightBlue { get; } = "\x1b[104m";
|
||||
public string Yellow { get; } = "\x1b[43m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light cyan.
|
||||
/// Gets the color blue.
|
||||
/// </summary>
|
||||
public string LightCyan { get; } = "\x1b[106m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light gray.
|
||||
/// </summary>
|
||||
public string LightGray { get; } = "\x1b[107m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light green.
|
||||
/// </summary>
|
||||
public string LightGreen { get; } = "\x1b[102m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light magenta.
|
||||
/// </summary>
|
||||
public string LightMagenta { get; } = "\x1b[105m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light red.
|
||||
/// </summary>
|
||||
public string LightRed { get; } = "\x1b[101m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color light yellow.
|
||||
/// </summary>
|
||||
public string LightYellow { get; } = "\x1b[103m";
|
||||
public string Blue { get; } = "\x1b[44m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color magenta.
|
||||
|
@ -228,9 +193,9 @@ namespace System.Management.Automation
|
|||
public string Magenta { get; } = "\x1b[45m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color read.
|
||||
/// Gets the color cyan.
|
||||
/// </summary>
|
||||
public string Red { get; } = "\x1b[41m";
|
||||
public string Cyan { get; } = "\x1b[46m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color white.
|
||||
|
@ -238,9 +203,44 @@ namespace System.Management.Automation
|
|||
public string White { get; } = "\x1b[47m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color yellow.
|
||||
/// Gets the color bright black.
|
||||
/// </summary>
|
||||
public string Yellow { get; } = "\x1b[43m";
|
||||
public string BrightBlack { get; } = "\x1b[100m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright red.
|
||||
/// </summary>
|
||||
public string BrightRed { get; } = "\x1b[101m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright green.
|
||||
/// </summary>
|
||||
public string BrightGreen { get; } = "\x1b[102m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright yellow.
|
||||
/// </summary>
|
||||
public string BrightYellow { get; } = "\x1b[103m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright blue.
|
||||
/// </summary>
|
||||
public string BrightBlue { get; } = "\x1b[104m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright magenta.
|
||||
/// </summary>
|
||||
public string BrightMagenta { get; } = "\x1b[105m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright cyan.
|
||||
/// </summary>
|
||||
public string BrightCyan { get; } = "\x1b[106m";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color bright white.
|
||||
/// </summary>
|
||||
public string BrightWhite { get; } = "\x1b[107m";
|
||||
|
||||
/// <summary>
|
||||
/// The color set as RGB (Red, Green, Blue).
|
||||
|
|
|
@ -34,39 +34,39 @@ Describe 'Tests for $PSStyle automatic variable' {
|
|||
$foregroundDefaults = @{
|
||||
Black = "`e[30m"
|
||||
White = "`e[37m"
|
||||
DarkGray = "`e[90m"
|
||||
LightGray = "`e[97m"
|
||||
BrightBlack = "`e[90m"
|
||||
BrightWhite = "`e[97m"
|
||||
Red = "`e[31m"
|
||||
LightRed = "`e[91m"
|
||||
BrightRed = "`e[91m"
|
||||
Magenta = "`e[35m"
|
||||
LightMagenta = "`e[95m"
|
||||
BrightMagenta = "`e[95m"
|
||||
Blue = "`e[34m"
|
||||
LightBlue = "`e[94m"
|
||||
BrightBlue = "`e[94m"
|
||||
Cyan = "`e[36m"
|
||||
LightCyan = "`e[96m"
|
||||
BrightCyan = "`e[96m"
|
||||
Green = "`e[32m"
|
||||
LightGreen = "`e[92m"
|
||||
BrightGreen = "`e[92m"
|
||||
Yellow = "`e[33m"
|
||||
LightYellow = "`e[93m"
|
||||
BrightYellow = "`e[93m"
|
||||
}
|
||||
|
||||
$backgroundDefaults = @{
|
||||
Black = "`e[40m"
|
||||
White = "`e[47m"
|
||||
DarkGray = "`e[100m"
|
||||
LightGray = "`e[107m"
|
||||
BrightBlack = "`e[100m"
|
||||
BrightWhite = "`e[107m"
|
||||
Red = "`e[41m"
|
||||
LightRed = "`e[101m"
|
||||
BrightRed = "`e[101m"
|
||||
Magenta = "`e[45m"
|
||||
LightMagenta = "`e[105m"
|
||||
BrightMagenta = "`e[105m"
|
||||
Blue = "`e[44m"
|
||||
LightBlue = "`e[104m"
|
||||
BrightBlue = "`e[104m"
|
||||
Cyan = "`e[46m"
|
||||
LightCyan = "`e[106m"
|
||||
BrightCyan = "`e[106m"
|
||||
Green = "`e[42m"
|
||||
LightGreen = "`e[102m"
|
||||
BrightGreen = "`e[102m"
|
||||
Yellow = "`e[43m"
|
||||
LightYellow = "`e[103m"
|
||||
BrightYellow = "`e[103m"
|
||||
}
|
||||
|
||||
function Get-TestCases($hashtable) {
|
||||
|
|
Loading…
Reference in a new issue