mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-19 04:21:27 +00:00
Fix color printing
This commit is contained in:
parent
2d799dae0d
commit
2ea1a47bec
4
build.py
4
build.py
@ -18,9 +18,9 @@ from zipfile import ZipFile
|
|||||||
|
|
||||||
def color_print(code, str):
|
def color_print(code, str):
|
||||||
if no_color:
|
if no_color:
|
||||||
print(f"\n{str}\n")
|
print(str)
|
||||||
else:
|
else:
|
||||||
str.replace("\n", "\033[K\n")
|
str = str.replace("\n", f"\033[0m\n{code}")
|
||||||
print(f"{code}{str}\033[0m")
|
print(f"{code}{str}\033[0m")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user