From: Ross Bamford Date: 2006-01-05T03:32:58+09:00 Subject: Re: Is there a way to clear the contents of a terminal? On Wed, 04 Jan 2006 17:51:22 -0000, James Edward Gray II wrote: > 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. :) > Wow, can't believe I remembered that... Now if only I could retain the _useful_ stuff :D -- Ross Bamford - rosco@roscopeco.remove.co.uk