From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JThrc-0003Nq-2d for qemu-devel@nongnu.org; Mon, 25 Feb 2008 13:15:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JThra-0003Mz-HN for qemu-devel@nongnu.org; Mon, 25 Feb 2008 13:15:43 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JThra-0003Ml-0n for qemu-devel@nongnu.org; Mon, 25 Feb 2008 13:15:42 -0500 Received: from os.inf.tu-dresden.de ([141.76.48.99]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JThrZ-0003qu-GD for qemu-devel@nongnu.org; Mon, 25 Feb 2008 13:15:41 -0500 Received: from erwin.inf.tu-dresden.de ([141.76.48.80] helo=chrom.inf.tu-dresden.de) by os.inf.tu-dresden.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1JThrW-0008Nh-V4 for qemu-devel@nongnu.org; Mon, 25 Feb 2008 19:15:38 +0100 Received: from kauer by chrom.inf.tu-dresden.de with local (Exim 4.69) (envelope-from ) id 1JThQs-0006aC-Vy for qemu-devel@nongnu.org; Mon, 25 Feb 2008 18:48:06 +0100 Date: Mon, 25 Feb 2008 18:48:06 +0100 From: Bernhard Kauer Message-ID: <20080225174806.GI3136@chrom.inf.tu-dresden.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="gj572EiMnwbLXET9" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] fix ncurses output 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 --gj572EiMnwbLXET9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The ncurses console uses mvwaddchnstr() to print a line of output to a ncurses pad. Unfortunately this routine stops to print further chars if a zero-char is seen in the line. This has the effect that parts of a line are never redraw. The following patch puts spaces instead of the zeros into the line-buffer. Please note that this change affects other consoles as well and is perhaps undesirable. Comments? Bernhard Kauer --gj572EiMnwbLXET9 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="qemu_curses.diff" Index: console.h --- console.h 10 Feb 2008 16:33:13 -0000 1.2 +++ console.h 25 Feb 2008 17:25:53 -0000 @@ -104,7 +104,8 @@ typedef unsigned long console_ch_t; static inline void console_write_ch(console_ch_t *dest, uint32_t ch) { - cpu_to_le32wu((uint32_t *) dest, ch); + if (!(ch & 0xff)) ch = 0x20; + cpu_to_le32wu((uint32_t *) dest, ch); } typedef void (*vga_hw_update_ptr)(void *); --gj572EiMnwbLXET9--