清除Pydroid 3中的终端历史

huangapple go评论107阅读模式
英文:

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")

huangapple
  • 本文由 发表于 2023年6月5日 00:24:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/76401362.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定