<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">John Haugeland <<a href="mailto:stonecypher@gmail.com">stonecypher@gmail.com</a>> writes:<br>
<br>
> > i want to clean the erlang cosole.and want to position the cursor<br>
> > to the top left hand cornet of the console.I went trough the c<br>
> > module on erlang but still i cudnt find a way to clear the screen.<br>
> > can anybody let me know hw to clean the erlang screen.<br>
><br>
> This is not really an erlang question. Console implementations differ in<br>
> their control codes.<br>
><br>
> Nonsense. The erlang console is not an OS console. <br>
<br>
</div> No, but it runs in one... So, to clear the screen and move the cursor<br>
to home you have to deal with the underlying console, right?<br>
<font color="#888888"></font></blockquote><div><br>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.<br>
<br>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 emacs.<br>
<br></div></div>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.<br><br>