microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
core/integration-test-au

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Common/Text/ANSI.cs

40lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4namespace Microsoft.Teams.Common.Text;
5
6public class ANSI(string value) : StringEnum(value)
7{
8 public static readonly ANSI Reset = new("\x1b[0m");
9
10 public static readonly ANSI Bold = new("\x1b[1m");
11 public static readonly ANSI BoldReset = new("\x1b[22m");
12 public static readonly ANSI Italic = new("\x1b[3m");
13 public static readonly ANSI ItalicReset = new("\x1b[23m");
14 public static readonly ANSI Underline = new("\x1b[4m");
15 public static readonly ANSI UnderlineReset = new("\x1b[24m");
16 public static readonly ANSI Strike = new("\x1b[9m");
17 public static readonly ANSI StrikeReset = new("\x1b[29m");
18
19 public static readonly ANSI ForegroundReset = new("\x1b[0m");
20 public static readonly ANSI BackgroundReset = new("\x1b[0m");
21 public static readonly ANSI ForegroundBlack = new("\x1b[30m");
22 public static readonly ANSI BackgroundBlack = new("\x1b[40m");
23 public static readonly ANSI ForegroundRed = new("\x1b[31m");
24 public static readonly ANSI BackgroundRed = new("\x1b[41m");
25 public static readonly ANSI ForegroundGreen = new("\x1b[32m");
26 public static readonly ANSI BackgroundGreen = new("\x1b[42m");
27 public static readonly ANSI ForegroundYellow = new("\x1b[33m");
28 public static readonly ANSI BackgroundYellow = new("\x1b[43m");
29 public static readonly ANSI ForegroundBlue = new("\x1b[34m");
30 public static readonly ANSI BackgroundBlue = new("\x1b[44m");
31 public static readonly ANSI ForegroundMagenta = new("\x1b[35m");
32 public static readonly ANSI BackgroundMagenta = new("\x1b[45m");
33 public static readonly ANSI ForegroundCyan = new("\x1b[36m");
34 public static readonly ANSI BackgroundCyan = new("\x1b[46m");
35 public static readonly ANSI ForegroundWhite = new("\x1b[37m");
36 public static readonly ANSI BackgroundWhite = new("\x1b[47m");
37 public static readonly ANSI ForegroundGray = new("\x1b[90m");
38 public static readonly ANSI ForegroundDefault = new("\x1b[39m");
39 public static readonly ANSI BackgroundDefault = new("\x1b[49m");
40}