File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ class MarkdownElement(Enum):
22
22
23
23
class MarkdownRenderer :
24
24
def __init__ (self ):
25
+ if os .name == "nt" :
26
+ import colorama
27
+ colorama .init ()
25
28
# ANSI escape codes
26
29
self .BOLD = "\033 [1m"
27
30
self .CODE = "\033 [7m" # Regular inline code stays inverted
Original file line number Diff line number Diff line change 14
14
15
15
class ContentRenderer :
16
16
def __init__ (self , style ):
17
+ if os .name == "nt" :
18
+ import colorama
19
+ colorama .init ()
17
20
self .buffer = ""
18
21
self .started = False
19
22
self .style = style
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ pillow = ">=10.3.0"
26
26
uvicorn = " ^0.32.0"
27
27
pynput = " ^1.7.7"
28
28
httpx = " 0.27.2"
29
+ colorama = " ^0.4.6"
29
30
30
31
[build-system ]
31
32
requires = [" poetry-core>=1.0.0" ]
You can’t perform that action at this time.
0 commit comments