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"

There is a newer version of this package available.
See the version list below for details.
Install-Package BlackFox.ColoredPrintf -Version 1.0.2
dotnet add package BlackFox.ColoredPrintf --version 1.0.2
<PackageReference Include="BlackFox.ColoredPrintf" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
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

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.3 233 12/4/2018
1.0.2 529 9/9/2018
1.0.0 686 7/22/2018
0.3.0 502 11/6/2016
0.2.0 288 10/23/2016
0.1.0 343 10/8/2016