From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Harper Subject: [PATCH 0/1][RESEND] v2: Fix monitor console in curses mode Date: Thu, 4 Sep 2008 11:10:37 -0500 Message-ID: <1220544638-1972-1-git-send-email-ryanh@us.ibm.com> Cc: Ryan Harper , Ian Kirk , carenas@sajinet.com.pe, kvm@vger.kernel.org To: qemu-devel@nongnu.org Return-path: Received: from e5.ny.us.ibm.com ([32.97.182.145]:38481 "EHLO e5.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751913AbYIDQKz (ORCPT ); Thu, 4 Sep 2008 12:10:55 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e5.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m84GArPZ018905 for ; Thu, 4 Sep 2008 12:10:53 -0400 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m84GAeYM164832 for ; Thu, 4 Sep 2008 12:10:40 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m84GAdNd010536 for ; Thu, 4 Sep 2008 12:10:40 -0400 Sender: kvm-owner@vger.kernel.org List-ID: No futher feedback or concerns received, please apply. v2: dropped initial display size changes in curses.c -- not needed. The current curses code doesn't adjust the curses and text console display to match the size of the terminal and fails to adjust properly after a resize. The attach patches 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. Signed-off-by: Ryan Harper