qemu-irix/include
OGAWA Hirofumi 4083733db5 ui/curses: Fix color attribute of monitor for curses
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. Anyway, this doesn't work
at all.

What curses expects is actually (and vga.c is using),

[RIGHT]
	bold << 21 | bg << 11 | fg << 8 | char
	fg == 3bits vga color number
	bg == 3bits vga color number

And curses set COLOR_PAIR() up to match this format, and curses's
chtype. I.e,

	bold | color_pair | char
	color_pair == (bg << 3 | fg)

To fix, this simply uses VGA color number everywhere except curses.c
internal. Then, convert it to above [RIGHT] format to write by
console_write_ch(). And as bonus, this reduces to expose curses define
to other parts (removes COLOR_* from console.c).

[Tested the first line is displayed as white on blue back for monitor
in curses console]

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Message-id: 87r3j95407.fsf@mail.parknet.co.jp
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2016-01-08 12:20:07 +01:00
..
block block: add BlockLimits.max_iov field 2015-12-22 16:01:07 +08:00
crypto crypto: move QCryptoCipherAlgorithm/Mode enum definitions into QAPI 2015-12-23 11:02:20 +00:00
disas
exec memory: try to inline constant-length reads 2015-12-17 17:33:49 +01:00
fpu
hw acpi: extend aml_and() to accept target argument 2015-12-22 18:39:21 +02:00
io io: add QIOChannelBuffer class 2015-12-18 12:18:31 +00:00
libdecnumber
migration qapi: Don't let implicit enum MAX member collide 2015-12-17 08:21:28 +01:00
monitor
net
qapi qapi: Shorter visits of optional fields 2015-12-17 08:21:29 +01:00
qemu util: add base64 decoding function 2015-12-18 16:25:08 +00:00
qom qom: Update documentation comment of struct Object 2015-12-03 20:10:22 +01:00
standard-headers linux-headers: update from kvm/next 2015-12-17 15:24:34 +01:00
sysemu block-backend: add blk_get_max_iov() 2015-12-22 16:01:07 +08:00
ui ui/curses: Fix color attribute of monitor for curses 2016-01-08 12:20:07 +01:00
config.h
elf.h
glib-compat.h
qemu-common.h
qemu-io.h
qjson.h
trace-tcg.h
trace.h