Skip to content

Instantly share code, notes, and snippets.

@hamidreza-s
Created April 12, 2014 05:25
Show Gist options
  • Save hamidreza-s/10520105 to your computer and use it in GitHub Desktop.
Save hamidreza-s/10520105 to your computer and use it in GitHub Desktop.
How to clear the Erlang shell.
%% move cursor to beginning of the line
io:format("\e[H").
%% clear the console
io:format("\e[J").
%% both
io:format("\e[H\e[J").
@netcastdeveloper1
Copy link

congrats tudrax
io:format(os:cmd(clear)) works!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment