This will work on terminals that support ANSI escape sequences:
io:format("\e[H\e[J")
On Windows, os:cmd("cls") should work.
> Seeking for a way to clear terminal for several hours... No success
> so far...
> So, could anyone tell ho do I do ^L from erlang program (escript
> actually)?