Skip to content

Commit 9f14f76

Browse files
committed
Re-add sphinx.util.console
1 parent 87d3402 commit 9f14f76

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

sphinx/util/console.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from sphinx._cli.console_utilities import ( # isort:skip # NoQA: F401
2+
color_terminal, colorize, coloron, create_color_func, get_terminal_width,
3+
nocolor, strip_colors, term_width_line, terminal_safe, _tw,
4+
)
5+
from sphinx._cli import console_utilities as __console_utilities
6+
7+
for __name in (
8+
'reset', 'bold', 'faint', 'standout', 'underline', 'blink',
9+
'black', 'darkgray',
10+
'darkred', 'red',
11+
'darkgreen', 'green',
12+
'brown', 'yellow',
13+
'darkblue', 'blue',
14+
'purple', 'fuchsia',
15+
'turquoise', 'teal',
16+
'lightgray', 'white',
17+
):
18+
globals()[__name] = getattr(__console_utilities, __name)

0 commit comments

Comments
 (0)