Skip to content

Commit

Permalink
fix powershell console error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfleischer committed Feb 25, 2024
1 parent c69cb08 commit 90d887a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/cloudmesh/common/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,6 @@ def error(cls, message, prefix=True, traceflag=False):
else:
text = ""
if cls.color:
# if is_powershell():
# print(
# Fore.RED + Back.WHITE + text + message + Console.theme_color["ENDC"]
# )
# else:
cls.cprint(str(message), cls.theme_color["FAIL"], text)
else:
print(cls.txt_msg(text + str(message)))
Expand Down Expand Up @@ -376,8 +371,7 @@ def cprint(message, color="BLUE", prefix=""):
if isinstance(message, Text):
RichConsole.print(prefix, message, sep="")
else:
c = Console.theme[color.upper()]
RichConsole.print(prefix + message, style=c)
RichConsole.print(prefix + message, style=color)

@staticmethod
def text(color="RED", prefix=None, message=None):
Expand Down

0 comments on commit 90d887a

Please sign in to comment.