From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWazL-0001kD-KF for qemu-devel@nongnu.org; Fri, 22 Aug 2008 14:03:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWazK-0001jl-3K for qemu-devel@nongnu.org; Fri, 22 Aug 2008 14:03:55 -0400 Received: from [199.232.76.173] (port=53661 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWazJ-0001ji-NW for qemu-devel@nongnu.org; Fri, 22 Aug 2008 14:03:53 -0400 Received: from e32.co.us.ibm.com ([32.97.110.150]:42776) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KWazJ-0003g5-7z for qemu-devel@nongnu.org; Fri, 22 Aug 2008 14:03:53 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e32.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id m7MHuq0N008932 for ; Fri, 22 Aug 2008 13:56:52 -0400 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m7MI3h2e188004 for ; Fri, 22 Aug 2008 12:03:43 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m7MI3hWN005467 for ; Fri, 22 Aug 2008 12:03:43 -0600 From: Ryan Harper Date: Fri, 22 Aug 2008 13:03:39 -0500 Message-Id: <1219428221-22947-1-git-send-email-ryanh@us.ibm.com> Subject: [Qemu-devel] [PATCH 0/2] Fix monitor console in curses mode 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 Cc: Ryan Harper , kvm@vger.kernel.org, Ian Kirk The current curses code doesn't set the initial monitor text console to the size of the terminal and fails to adjust properly after a resize. The attach patches create the initial console based on the size of the terminal instead of defaulting to 80x25, and also hook ensure that text_console_resize events adjust the Textconsole display area so they stay the same size as the curses display. The result is that we no longer see broken output like: QEMU 0.9.1 monitor - type 'help' for more information (qemu) (qemu) (qemu) and you can resize your terminal window and the monitor and serial text consoles adjust properly as well. The second patch is a trivial typo fix in the comments in console.c Comments welcome since I'm new to both curses and qemu console code. Signed-off-by: Ryan Harper