kennethreitz / crayons

Text UI colors for Python.
https://pypi.python.org/pypi/crayons
MIT License
423 stars 30 forks source link

Add function to just make bold text #18

Closed jayanthkoushik closed 5 years ago

jayanthkoushik commented 6 years ago

Sometimes, it's desirable to have bold text without specifying color (to be consistent with different backgrounds). At the moment, it seems like there isn't any way to do this with crayons, and a crayons.bold function should be easy to add. Another advantage is to allow chaining bold/color calls. For example,

if condition_1:
    msg = crayons.red(msg)
if condition_2:
    msg = crayons.bold(msg)

It should be a very simple function to add, and I'd be happy to make a pull request.

sujanasowrirajan commented 6 years ago

Have you tried crayons.normal(msg, bold=True)?

ParthS007 commented 5 years ago

Closing due to inactivity :+1: