New course! Every coder should learn Generative AI!
Try a free lesson+ 6
How do I clear the terminal(ANDROID QPYTHON)
I tried animating my ascii string but somehow it didnt work. I just want to make it: ----- ------ Into this: ------ ----- I found an answer here in SL QnA but somehow it didn't work for me, well of course, only for Linux and windows. It shows "sh: clear not found" and "sh: cls not found" What do I do?
9 Answers
+ 4
diego Code
module object has no attribute "run"
+ 4
diego Code No such file or directory "clear"
Btw this is python 3.2
+ 4
Unfortunately as I said in question lvl 1 crook, it says
sh: clear: not found
+ 4
Still no lvl 1 crook
Also your qpython is in latet version which is python 3.6
Well im in qpython 3.2 :'(
0
don't listen to the others, this one actually works
import os
os.system("clear")
0
hmm.. i actually downloaded QPython on my android as well.
and it works when i tested the following codes i sent you
if that doesn't work then i guess i can't help you further since i have no other solutions.
the only advise i can give you is to find a way to use system commands on your python terminal
i don't think this will work but did you try os.system("cls")
- 1
import subprocess
subprocess.run(["clear", ""])
- 1
OfficialAz3 try .call() instead
subprocess.call(["clear"])
- 1
lvl 1 crook ... "Don't listen to the others..." ? Really?