From: James Edward Gray II Date: 2006-01-05T02:51:22+09:00 Subject: Re: Is there a way to clear the contents of a terminal? On Jan 4, 2006, at 11:47 AM, Ross Bamford wrote: > On Wed, 04 Jan 2006 15:00:45 -0000, Steve Litt > wrote: > >> On Wednesday 04 January 2006 09:10 am, Steve Litt wrote: >>> On Wednesday 04 January 2006 04:07 am, John Maclean wrote: >>> > I should've made myself clearer. Is there a way to do this via >>> a ruby >>> > command? >>> >>> print 12.to_s >> >> Dooohhhhh. This would have printed "12". What I needed some sort >> of equivalent >> of Pascal chr(). >> > > IIRC ASCII 0x0C is form-feed, right. Doesn't Ruby support "\f"? > (seems to). > But I don't think it'll clear the terminal, will it? Correct on all accounts. :) James Edward Gray II