Hallo,

On Wed, 15 May 2002 16:50:46 GMT, Thomas A. Reilly <w3gat / bellsouth.net> wrote:
> Using the following program
> 
> Cesc = 27.chr
> print "#{Cesc}[2J"
> print "Hello world\n"
> 
> Ruby version 1.4.3 (1999-12-08) [i386-cygwin] clears the screen
> Ruby version 1.6.6 (2001-12-26) [i586-mswin32] does not.
> 
> Why?
> Any suggested fix?

I think you need ANSI codes for the screen/window.
cygwin contains this in its terminal.
mswin32 seems to not contain it, but adding
	device=c:\....\ansi.sys
could help.

The details about installing devices vary according to whether you use
DOS (or Win95,98) vs. Win ME vs. WinNT (or Win 2k).

Second posibility (citing Tobias Peters <tpeters / uni-oldenburg.de> from
another thread of this newsgroup):

>Or maybe you want to use ncurses? I think it can cope with dos boxes, too.
>http://ncurses-ruby.berlios.de/ ;-)

HTH,
	Stepan Kasal