英文:
Clear terminal history in Pydroid 3
问题
我无法弄清楚如何清除Pydroid的终端历史记录。我尝试过hictory -c、history -d和history -w,但都不起作用。Clear和cls不是可用命令。
英文:
I could not figure out how to clear Pydroid's terminal history.
I tried hictory -c and history -d and history -w and that does not work. Clear and cls are not available commands.
答案1
得分: 0
我找到了历史记录存储在一个文件中的位置。以下命令适用于我。您必须重新启动Pydroid才能看到更改。
/storage/emulated/0 $ cd ~
~/data/ru.iiec.pydroid3/app_HOME $ ls -a
. .. .ash_history
~/data/ru.iiec.pydroid3/app_HOME $ rm .ash_history
~/data/ru.iiec.pydroid3/app_HOME $
英文:
I figured where the history is stored in a file. The following commands worked for me. You must restart Pydroid to see the change.
/storage/emulated/0 $ cd ~
~/data/ru.iiec.pydroid3/app_HOME $ ls -a
. .. .ash_history
~/data/ru.iiec.pydroid3/app_HOME $ rm .ash_history
~/data/ru.iiec.pydroid3/app_HOME $
答案2
得分: 0
"With the console\n>>> print("\033[H\033[J")" 可以翻译为:使用控制台\n>>> 打印("\033[H\033[J")
英文:
With the console
>>> print("\033[H\033[J")
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论