From: Ross Bamford Date: 2006-01-04T19:12:58+09:00 Subject: Re: Is there a way to clear the contents of a terminal? On Wed, 04 Jan 2006 06:49:14 -0000, John Maclean wrote: > Hi Chaps, > > MATLAB uses cls, in a bash shell I'd use clear. Is there a way to clear > the contents of a terminal -safely-? > Safe, sure, reliable, probably not. But on most 'modern' systems I guess this should work: puts "\e[2J" -- Ross Bamford - rosco@roscopeco.remove.co.uk