How to clear the screen in Erlang on Windows

I am using Windows as OS and install Erlang 16B. How do I clear the screen?

I've already tried :

clrscr ().

ClearScreen ().

CBS ().

But failed to complete every time.

(Maybe a very simple question, but I can't seem to find a solution.)

+3


source to share


2 answers


Enter the following command into the erlang shell. io:format(os:cmd(clear)).

And you go :)



+4


source


The author of the following link / answer suggests using the io: format.

http://erlang.org/pipermail/erlang-questions/2014-November/081939.html



Write your own function call:

clear() ->
    io:format("\033[2J").

      

+3


source







All Articles