Commits

sirgazil committed 4189ae2 Draft

Added section on printing bold text

Comments (0)

Files changed (1)

docs/source/usage.rst

 Bold text
 ---------
 
-...
+There are two methods to print bold strings: ``Display.color()`` or
+``Display.bold()``. Use the former if you want to print a bold colored string,
+and the latter to print a bold string with your terminal's default foreground
+color:
+
+.. sourcecode:: python
+
+   #! /usr/bin/env python
+
+   from colorin.cli import Display
+
+
+   screen = Display()
+   screen.color("I'm bold and green", "Green", bold=True)
+   screen.bold("I'm just bold")
 
 
 Erasing the screen