From 4d3b6f6e126553107a78999bd1070b086ae3c023 Mon Sep 17 00:00:00 2001 From: balrog Date: Sun, 10 Feb 2008 16:33:14 +0000 Subject: Add an ncurses UI. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3976 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/vmware_vga.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'hw/vmware_vga.c') diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index bd96e6ba85..2b4c59d448 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware_vga.c @@ -949,6 +949,14 @@ static void vmsvga_screen_dump(void *opaque, const char *filename) } } +static void vmsvga_text_update(void *opaque, console_ch_t *chardata) +{ + struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + + if (s->text_update) + s->text_update(opaque, chardata); +} + #ifdef DIRECT_VRAM static uint32_t vmsvga_vram_readb(void *opaque, target_phys_addr_t addr) { @@ -1101,7 +1109,8 @@ static void vmsvga_init(struct vmsvga_state_s *s, DisplayState *ds, iomemtype); graphic_console_init(ds, vmsvga_update_display, - vmsvga_invalidate_display, vmsvga_screen_dump, s); + vmsvga_invalidate_display, vmsvga_screen_dump, + vmsvga_text_update, s); #ifdef EMBED_STDVGA vga_common_init((VGAState *) s, ds, -- cgit v1.2.3