Skip to content

Commit

Permalink
no color for windows shell (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
cle-b authored Sep 21, 2024
1 parent 5343601 commit 1d2ec45
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions lymbo/color.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
RED = "\033[31m"
GREEN = "\033[32m"
YELLOW = "\033[33m"
RESET = "\033[0m"
import os

if os.name == "nt":
RED = ""
GREEN = ""
YELLOW = ""
RESET = ""
else:
RED = "\033[31m"
GREEN = "\033[32m"
YELLOW = "\033[33m"
RESET = "\033[0m"

0 comments on commit 1d2ec45

Please sign in to comment.