Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions interpreter/ui/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class MarkdownElement(Enum):

class MarkdownRenderer:
def __init__(self):
if os.name == "nt":
import colorama
colorama.init()
# ANSI escape codes
self.BOLD = "\033[1m"
self.CODE = "\033[7m" # Regular inline code stays inverted
Expand Down
3 changes: 3 additions & 0 deletions interpreter/ui/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

class ContentRenderer:
def __init__(self, style):
if os.name == "nt":
import colorama
colorama.init()
self.buffer = ""
self.started = False
self.style = style
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pillow = ">=10.3.0"
uvicorn = "^0.32.0"
pynput = "^1.7.7"
httpx = "0.27.2"
colorama = "^0.4.6"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
Loading