Bagaimana cara memakai 6 code python tersebut di App code berbeda #2
Verified answer
by
Boiescylosh
Boiescylosh
asked this question in
Q&A
-
|
[ ? ] Ada codenya gak, biar script ini tetep lancar pas di-run di CLI yang beda-beda tanpa ngerusak warnanya? |
Beta Was this translation helpful? Give feedback.
Admin verified this answer by
Boiescylosh
Mar 10, 2026
Replies: 1 comment
-
|
[ Me ] Biar aman di Termux atau CLI lain, jangan lupa pake import pyfiglet init(autoreset=True) def show_banner(text): show_banner(ascii) kalo masih pusing delete aja project lu, kalo di termux ya rm -rf aja |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[ Me ] Biar aman di Termux atau CLI lain, jangan lupa pake
colorama.init(autoreset=True). Terus buat bannernya, bisa pake function biar rapi:import pyfiglet
from colorama import Fore, init
init(autoreset=True)
def show_banner(text):
banner = pyfiglet.figlet_format(text)
print(Fore.CYAN + banner)
show_banner(ascii)
kalo masih pusing delete aja project lu, kalo di termux ya rm -rf aja