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

2015-12-15 Thread Gerd Hoffmann
On Mi, 2015-12-02 at 03:44 +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 v2] ui/curses: Fix color attribute of monitor for curses

2015-12-01 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.