Skip to content

Commit

Permalink
chore: add background color example
Browse files Browse the repository at this point in the history
  • Loading branch information
AlienFruit committed Dec 29, 2019
1 parent 09d0f8c commit 032a58f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/DemoConsole/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ static void Main(string[] args)

FConsole.Color(ConsoleColor.Red).Write("This")
.Color(ConsoleColor.Green).Write(" is")
.Color(ConsoleColor.Blue).Write(" color")
.ResetColor().Write(" text");
.Color(ConsoleColor.Blue).BackgroundColor(ConsoleColor.DarkGray).Write(" color")
.ResetColors().Write(" text");

FConsole.WriteLine("This is a text")
.Color(ConsoleColor.Green).WriteLine("This is a green text")
.BackgroundColor(ConsoleColor.Red).WriteLine("This is a green text with red background")
.ResetColors()
.WriteLine("This is a white text");

FConsole.ReadKey();
}
Expand Down

0 comments on commit 032a58f

Please sign in to comment.