Re: [Qemu-devel] [PATCH] ui/curses: Fix color attribute of monitor for curses

2015-12-01 Thread OGAWA Hirofumi
Gerd Hoffmann writes: >> static const pixman_color_t color_table_rgb[2][8] = { >> { /* dark */ >> -QEMU_RGB(0x00, 0x00, 0x00), /* black */ >> -QEMU_RGB(0xaa, 0x00, 0x00), /* red */ >> -QEMU_RGB(0x00, 0xaa, 0x00), /* green */ >> -QEMU_RGB(0xaa, 0xaa, 0x00

Re: [Qemu-devel] [PATCH] ui/curses: Fix color attribute of monitor for curses

2015-12-01 Thread Gerd Hoffmann
On So, 2015-11-29 at 22:28 +0900, OGAWA Hirofumi wrote: > Current text_console_update() writes totally broken color attributes > to console_write_ch(). The format now is writing, > > [WRONG] > bold << 21 | fg << 12 | bg << 8 | char > fg == 3bits curses color number > bg == 3bits

[Qemu-devel] [PATCH] ui/curses: Fix color attribute of monitor for curses

2015-11-29 Thread OGAWA Hirofumi
Current text_console_update() writes totally broken color attributes to console_write_ch(). The format now is writing, [WRONG] bold << 21 | fg << 12 | bg << 8 | char fg == 3bits curses color number bg == 3bits curses color number I can't see this format is where come from.