From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ron Michael Khu Subject: Re: clear the screen Date: Mon, 21 Feb 2005 22:15:16 +0800 Message-ID: <4219ECF4.2000602@hq.ntsp.nec.co.jp> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit In-Reply-To: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Darren Sessions Cc: linux-c-programming@vger.kernel.org =) u misunderstood the original post/question by kaushal Darren Sessions wrote: >system("clear"); > >On 2/21/05 5:12 AM, "YYW" wrote: > > > >>On Mon, 21 Feb 2005 15:26:51 +0530 >>"Vinodkumar Nair" wrote: >> >> >> >>>>>printf("\e[0m\e[2J\e[1;1H"); >>>>> >>>>> >>>How does this printf work to clear the screen? >>> >>> >>It's ascii control character. 2J means clear the screen and >>1;1H set the cursor position. >> >> >> >>>- >>>To unsubscribe from this list: send the line "unsubscribe >>>linux-c-programming" in >>>the body of a message to majordomo@vger.kernel.org >>>More majordomo info at http://vger.kernel.org/majordomo-info.html >>> >>> > > >- >To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in >the body of a message to majordomo@vger.kernel.org >More majordomo info at http://vger.kernel.org/majordomo-info.html > > > >