icyphox / fab

:star2: print fabulously in your terminal
MIT License
49 stars 6 forks source link

Update docs in the README #8

Closed s0kil closed 6 years ago

s0kil commented 6 years ago

A great feature would be to be able to bold a color. bold(blue("Hey! I'm BOLD and blue"))

Something similar to this: https://github.com/fatih/color

red := color.New(color.FgRed)

boldRed := red.Add(color.Bold)
icyphox commented 6 years ago

It's already been implemented actually, take a look at this. My lazy ass just hasn't updated the README with the new stuff yet. I guess I'll edit the issue title to read 'Update documentation in the README', instead.

s0kil commented 6 years ago

@icyphox Is this the cleanest way to use it?

import ../src/fab
import terminal

blue("this is bold blue", sty = {styleBright})
icyphox commented 6 years ago

At the moment, yes.

icyphox commented 6 years ago

Thanks for your contribution! Closing this now.