How do I clear the terminal screen on Android app?

According to the Widget terminal-docs, 25 blank lines should do the trick:

for (int i = 0; i <= 24; i++) {
   terminal.println("");     // "clear screen" in app.
}
terminal.flush();
2 Likes