From: Steve Litt Date: 2006-01-04T23:08:09+09:00 Subject: Re: Is there a way to clear the contents of a terminal? On Wednesday 04 January 2006 01:49 am, 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-? In the UMENU program, I do this: puts "\n" * 24 Crude, but effective, and has the advantage of being totally portable -- even on an ancient teletype terminal. If you use different terminal resolutions, then it would be print "\n" * lines_per_screen SteveT Steve Litt http://www.troubleshooters.com slitt@troubleshooters.com