Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sh: cls: inaccessible or not found #1

Open
fagiln opened this issue Feb 2, 2023 · 3 comments
Open

sh: cls: inaccessible or not found #1

fagiln opened this issue Feb 2, 2023 · 3 comments

Comments

@fagiln
Copy link

fagiln commented Feb 2, 2023

sh: cls: inaccessible or not found knapa bng?

@rickyfazaa
Copy link
Owner

setelah saya check sepertinya itu error karena command os.system('cls') tidak compatible sama Bash di Linux atau MacOSX
error

ini gan solutionnya
solution
jadi command os.system('cls') diganti os.system('clear') dicodingan.

thx

@rickyfazaa
Copy link
Owner

rickyfazaa commented Feb 3, 2023

jika saat diganti command os.system('cls') diganti os.system('clear') dicodingan masih seperti ini
coba

ya hapus aja command os.system('clear') nya, tidak mempengaruhi toolsnya kok gan. itu cuman command untuk membersihkan keluaran yang dihasilkan sebelumnya.

perbedaan
saya tidak terlalu familiar sama Linux habisnya hehe. anyway thx ya

@rickyfazaa rickyfazaa reopened this Feb 3, 2023
@raselldev
Copy link

from sys import platform
if platform == "linux" or platform == "linux2":
# linux
elif platform == "darwin":
# OS X
elif platform == "win32":
# Windows...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants