[erlang-questions] erlang-questions Digest, Vol 24, Issue 15

John Haugeland stonecypher@REDACTED
Mon May 4 16:49:31 CEST 2009

> John Haugeland <stonecypher@REDACTED> writes:
> >     > i want to clean the erlang cosole.and want to position the cursor
> >     > to the top left hand cornet of the console.I went trough the c
> >     > module on erlang but still i cudnt find a way to clear the screen.
> >     > can anybody let me know hw to clean the erlang screen.
> >
> >     This is not really an erlang question. Console implementations differ
> in
> >     their control codes.
> >
> > Nonsense.  The erlang console is not an OS console.
>   No, but it runs in one... So, to clear the screen and move the cursor
>  to home you have to deal with the underlying console, right?

Sorry, no.  It can run in an OS console on unix under certain
circumstances.  The erlang shell is neither always in an OS shell under unix
nor even commonly so on Windows, and god only knows what happens on a Mac,
which is as Unix as Canada is French.  Indeed, if I remember correctly,
aren't there two different Unix erlang shells?  I know there are two Windows
erlang shells, and that the one running in the OS console is essentially
never used interactively.

It remains amazing to me that the Linux community, inherited from an OS
specification born of the need for portability, cut directly from the wool
of C, are usually the first to forget that their world isn't the only
world.  Might as well argue language syntax on the grounds that it's easy in

And of course, if you're willing to stick to the Unix shell, then really all
you have to do is emit VT codes and call it a day.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090504/1ac1c617/attachment.htm>

More information about the erlang-questions mailing list