BlackFox.ColoredPrintf 1.0.2

Provide a printf replacement with colors.

 This library provide a colorprintf function where colors can be set for a range using the syntax :

     $foreground;background[text]

 For example:

     colorprintf "Hello $red[%s]." "world"

Install-Package BlackFox.ColoredPrintf -Version 1.0.2
dotnet add package BlackFox.ColoredPrintf --version 1.0.2
paket add BlackFox.ColoredPrintf --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This library provide a replacement to F# printf function with color support.

The syntax to set the color inside the string is $foreground;background[text] where both foreground and background are optional.

Examples

colorprintfn "Hello $red[world]."
colorprintfn "Hello $green[%s]." "user"
colorprintfn "$white[Progress]: $yellow[%.2f%%] (Eta $yellow[%i] minutes)" 42.33 5
colorprintfn "$white;blue[%s ]$black;white[%s ]$white;red[%s]" "La vie" "est" "belle"

Displays :

Demo

This library provide a replacement to F# printf function with color support.

The syntax to set the color inside the string is $foreground;background[text] where both foreground and background are optional.

Examples

colorprintfn "Hello $red[world]."
colorprintfn "Hello $green[%s]." "user"
colorprintfn "$white[Progress]: $yellow[%.2f%%] (Eta $yellow[%i] minutes)" 42.33 5
colorprintfn "$white;blue[%s ]$black;white[%s ]$white;red[%s]" "La vie" "est" "belle"

Displays :

Demo

Release Notes

Remove ValueTuple reference

Version History

Version Downloads Last updated
1.0.2 379 9/9/2018
1.0.0 561 7/22/2018
0.3.0 328 11/6/2016
0.2.0 146 10/23/2016
0.1.0 182 10/8/2016