C
C#2y ago
StickDude

✅ use Console.write to set foreground color?

how do i use Console.write to set foreground color?
6 Replies
Dellibrov
Dellibrov2y ago
Do you want to set Console foreground color ?
StickDude
StickDudeOP2y ago
yes
Dellibrov
Dellibrov2y ago
No description
Dellibrov
Dellibrov2y ago
As you see it expects ConsoleColor
Console.ForegroundColor = ConsoleColor.Red;
Console.ForegroundColor = ConsoleColor.Red;
Dellibrov
Dellibrov2y ago
No description
Dellibrov
Dellibrov2y ago
also you need to output something to see it's effect like Console.WriteLine("Hello"); etc

Did you find this page helpful?