File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ class MarkdownElement(Enum):
2222
2323class MarkdownRenderer :
2424 def __init__ (self ):
25+ if os .name == "nt" :
26+ import colorama
27+ colorama .init ()
2528 # ANSI escape codes
2629 self .BOLD = "\033 [1m"
2730 self .CODE = "\033 [7m" # Regular inline code stays inverted
Original file line number Diff line number Diff line change 1414
1515class ContentRenderer :
1616 def __init__ (self , style ):
17+ if os .name == "nt" :
18+ import colorama
19+ colorama .init ()
1720 self .buffer = ""
1821 self .started = False
1922 self .style = style
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ pillow = ">=10.3.0"
2626uvicorn = " ^0.32.0"
2727pynput = " ^1.7.7"
2828httpx = " 0.27.2"
29+ colorama = " ^0.4.6"
2930
3031[build-system ]
3132requires = [" poetry-core>=1.0.0" ]
You can’t perform that action at this time.
0 commit comments