package ansifmt
A simple, lightweight library for ANSI formatting
Install
dune-project
Dependency
Authors
Maintainers
Sources
ansifmt-0.2.0.tbz
sha256=e949493fe5d2625c22644dfd079a8cd4043c94f7bb368ca4da3684e2a65f1668
sha512=942588e88fddc55d04219e63f083e9d33fa34424fe0a58f4a7352883003c3331b553c3e630197f7276472d45cb457adf182c75859cc542b7f4f954581873c339
doc/CHANGES.html
0.2.0
Features
- Add color functions
luminanceandbest_for_contrast. (by @chshersh in #5) - Add styling functions
fg,bg,bold,dim,italic,underlined. (by @chshersh in #6) - Add styling composition with
&. (by @chshersh in #6) - Add function
make_rgb_hexto parse hexadecimal codes into RGB colors. (by @chshersh in #7)
Breaking Changes
Color.tandColor.Ground.tare now polymorphic variants. (by @chshersh in #5)
Removed
Util.parenthesize_ifwhich is deemed unuseful and is kind of a duplicate ofTree.parenthesize_ifinFormatting.
0.1.3
Fixes
- Fixed a bug where unwanted
mcharacters would appear in the output before every colored token
0.1.2
Fixes
- Moved
Formatting.tokenizeandFormatting.formatto a dedicatedFormatting.Utilsubmodule - it is common for users who wish to implementTOKENIZABLEtoopen Formatting, andFormatting.tokenizewould then shadow the user's own function, making it cumbersome if the latter was recursive. This does not affect theAnsifmtprelude -formatstays available.
0.1.1
Features
- Added
print_formattedand theIOsubmodule.
0.1.0
First pre-release.