Different colors in console string


/ Published in: C#
Save to your folder(s)

This is way to get different fg and bg colors inside 1 string. You provide escape like characters to define colors.

This is a fg of #rRed #xand now we're back to normal.
This is a bg of $bBlue#x and now we're back to normal.
I can combine fg & bg#r$bcolors #xalso.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.