From mboxrd@z Thu Jan 1 00:00:00 1970 From: YYW Subject: Re: clear the screen Date: Mon, 21 Feb 2005 18:12:34 +0800 Message-ID: <20050221181234.3d0de19a.wu_jian@263.net> 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" To: linux-c-programming@vger.kernel.org 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 -- Best regards, yyw@smth