0

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.

Hassan Voyeau
  • 3,383
  • 4
  • 22
  • 24

2 Answers2

0

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 $
Hassan Voyeau
  • 3,383
  • 4
  • 22
  • 24
0

With the console

print("\033[H\033[J")

MASTER
  • 1
  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 23 '23 at 13:53