All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] fix ncurses output
@ 2008-02-25 17:48 Bernhard Kauer
  2008-03-12  0:34 ` Aurelien Jarno
  2009-07-15 11:00 ` Bernhard Kauer
  0 siblings, 2 replies; 4+ messages in thread
From: Bernhard Kauer @ 2008-02-25 17:48 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 427 bytes --]

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

[-- Attachment #2: qemu_curses.diff --]
[-- Type: text/x-diff, Size: 399 bytes --]

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 *);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-15 11:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.