Debian Codegraph @

docs/source/appendix/box.rst

raw
1 .. _appendix_box:
2
3 Box
4 ===
5
6 Rich has a number of constants that set the box characters used to draw tables and panels. To select a box style import one of the constants below from ``rich.box``. For example::
7
8 from rich import box
9 table = Table(box=box.SQUARE)
10
11
12 .. note::
13 Some of the box drawing characters will not display correctly on Windows legacy terminal (cmd.exe) with *raster* fonts, and are disabled by default. If you want the full range of box options on Windows legacy terminal, use a *truetype* font and set the ``safe_box`` parameter on the Table class to ``False``.
14
15
16 The following table is generated with this command::
17
18 python -m rich.box
19
20 .. image:: ../../images/box.svg