Skip to content

Commit

Permalink
fix[minor] - apply color formatting to cinput function
Browse files Browse the repository at this point in the history
  • Loading branch information
OcelotWalrus committed May 3, 2024
1 parent 3fdabe3 commit 07f9810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/terminal_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def cout(__text: object = "", end="\n"):

def cinput(__text: object = ""):
# Ask basic input
return input(format_string_separator(__text))
return input(format_string_color(format_string_separator(__text)))


def cinput_int(__text: object = ""):
Expand All @@ -45,7 +45,7 @@ def cinput_int(__text: object = ""):
while not __var:
__var = True
try:
__input = int(cinput(format_string_separator(__text)))
__input = int(cinput(__text))
except ValueError as error:
cout(COLOR_YELLOW + "Input isn't valid!" + COLOR_RESET_ALL)
__var = False
Expand Down

0 comments on commit 07f9810

Please sign in to comment.