Received: from eggs.gnu.org ([140.186.70.92]:50090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qest9-0003Qd-UP for qemu-devel@nongnu.org; Thu, 07 Jul 2011 14:01:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qest8-0004Nw-86 for qemu-devel@nongnu.org; Thu, 07 Jul 2011 14:01:23 -0400 Received: from adelie.canonical.com ([91.189.90.139]:38662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qest7-0004Nh-LO for qemu-devel@nongnu.org; Thu, 07 Jul 2011 14:01:21 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Qest5-0006bX-7Y for ; Thu, 07 Jul 2011 18:01:19 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 842342E8959 for ; Thu, 7 Jul 2011 18:01:17 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 07 Jul 2011 17:52:27 -0000 From: "Devin J. Pohly" <568614@bugs.launchpad.net> Sender: bounces@canonical.com References: <20100422184526.26402.29988.malonedeb@wampee.canonical.com> Message-Id: <20110707175227.28012.85333.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 568614] Re: x86_64 host curses interface: spacing/garbling Reply-To: Bug 568614 <568614@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org How about using CONFIG_CURSES? If we --enable-curses, then we know we have curses.h and chtype. If we --disable-curses, then we don't care. Patch attached. It's a no-op if curses is disabled, and it fixes the issue on my machine with curses enabled. I had to undef the color constants from curses.h so we didn't conflict with enum color_names in console.c. ** Patch added: "ifdef CONFIG_CURSES, use chtype" https://bugs.launchpad.net/qemu/+bug/568614/+attachment/2195896/+files/c= htype.diff -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/568614 Title: x86_64 host curses interface: spacing/garbling Status in QEMU: In Progress Bug description: Environment: Arch Linux x86_64, kernel 2.6.33, qemu 0.12.3 Steps to reproduce: 1. Have a host system running 64-bit Linux. 2. Start a qemu VM with the -curses flag. Expected results: Text displayed looks as it would on a real text-mode display, and VM is t= herefore usable. Actual results: Text displayed contains an extra space between characters, causing text t= o flow off the right and bottom sides of the screen. This makes the curses = interface unintelligible. The attached patch fixes this problem on 0.12.3 on my installation without changing behavior on a 32-bit machine. I don't know enough of the semantics of console_ch_t to know if this is the "correct" fix or if there should be, say, an extra cast somewhere instead. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/568614/+subscriptions