From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JrZZO-0003h7-9c for qemu-devel@nongnu.org; Thu, 01 May 2008 10:15:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JrZZM-0003go-MT for qemu-devel@nongnu.org; Thu, 01 May 2008 10:15:33 -0400 Received: from [199.232.76.173] (port=49256 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JrZZM-0003gl-HN for qemu-devel@nongnu.org; Thu, 01 May 2008 10:15:32 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115] helo=SMTP.EU.CITRIX.COM) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JrZZM-0000bE-Bm for qemu-devel@nongnu.org; Thu, 01 May 2008 10:15:32 -0400 Received: from samy by implementation.famille.thibault.fr with local (Exim 4.69) (envelope-from ) id 1JrZZL-0004rm-GW for qemu-devel@nongnu.org; Thu, 01 May 2008 16:15:31 +0200 Date: Thu, 1 May 2008 15:15:31 +0100 From: Samuel Thibault Subject: Re: [Qemu-devel] [PATCH v2] curses: resize terminal to fit console size Message-ID: <20080501141531.GP4797@implementation.uk.xensource.com> References: <20080501075240.GA7929@tapir> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080501075240.GA7929@tapir> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Carlo Marcelo Arenas Belon, le Thu 01 May 2008 02:52:40 -0500, a écrit : > @@ -367,6 +372,11 @@ > > invalidate = 1; > > + /* check type of console and if it can be resized */ > + term = getenv("TERM"); > + if (strcmp(term, "linux") == 0) { > + term_resizable = 0; > + } That should be the converse, i.e. check for the terminals you _know_ support it: rxvt*, xterm* at least. There are far more ttys (I mean also _real_ terminals, not only xterms) that don't support it than ttys that do. Samuel