From: kasal@... (Stepan Kasal) Date: 2002-05-16T18:01:42+09:00 Subject: Re: clearing screen Hallo, On Wed, 15 May 2002 16:50:46 GMT, Thomas A. Reilly 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 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