From: Bernhard Kauer <kauer@os.inf.tu-dresden.de>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] fix ncurses output
Date: Wed, 15 Jul 2009 13:00:26 +0200 [thread overview]
Message-ID: <20090715110026.GA30109@chrom.inf.tu-dresden.de> (raw)
In-Reply-To: <20080225174806.GI3136@chrom.inf.tu-dresden.de>
This bug is still present. Somebody willing to fix it?
Bernhard
On Mon, Feb 25, 2008 at 06:48:06PM +0100, Bernhard Kauer wrote:
> 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
> 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 *);
prev parent reply other threads:[~2009-07-15 11:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-25 17:48 [Qemu-devel] [PATCH] fix ncurses output Bernhard Kauer
2008-03-12 0:34 ` Aurelien Jarno
2008-03-19 11:25 ` Bernhard Kauer
2009-07-15 11:00 ` Bernhard Kauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090715110026.GA30109@chrom.inf.tu-dresden.de \
--to=kauer@os.inf.tu-dresden.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).