Skip to content

Commit 10ef7f5

Browse files
authored
Fix PSStyle blink codes (#14447)
1 parent 7f3364f commit 10ef7f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/System.Management.Automation/FormatAndOutput/common/PSStyle.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,12 @@ public class FormattingData
308308
/// <summary>
309309
/// Gets value to turn off blink.
310310
/// </summary>
311-
public string BlinkOff { get; } = "\x1b[5m";
311+
public string BlinkOff { get; } = "\x1b[25m";
312312

313313
/// <summary>
314314
/// Gets value to turn on blink.
315315
/// </summary>
316-
public string Blink { get; } = "\x1b[25m";
316+
public string Blink { get; } = "\x1b[5m";
317317

318318
/// <summary>
319319
/// Gets value to turn off bold.

test/powershell/engine/Formatting/PSStyle.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Describe 'Tests for $PSStyle automatic variable' {
66
$PSDefaultParameterValues.Add('It:Skip', (-not $EnabledExperimentalFeatures.Contains('PSAnsiRendering')))
77
$styleDefaults = @{
88
Reset = "`e[0m"
9-
BlinkOff = "`e[5m"
10-
Blink = "`e[25m"
9+
BlinkOff = "`e[25m"
10+
Blink = "`e[5m"
1111
BoldOff = "`e[22m"
1212
Bold = "`e[1m"
1313
HiddenOff = "`e[28m"

0 commit comments

Comments
 (0)