summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-12-08 13:11:40 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-12 08:17:29 -0600
commit6ac733bf09daf1ed07af632018944264cedeb3df (patch)
tree200f9389feab703c9e42cb0368b6f6af588d1603
parentchardev: move greeting into vc backend. (diff)
downloadqemu-kvm-6ac733bf09daf1ed07af632018944264cedeb3df.tar.gz
qemu-kvm-6ac733bf09daf1ed07af632018944264cedeb3df.tar.bz2
qemu-kvm-6ac733bf09daf1ed07af632018944264cedeb3df.zip
vc: colorize chardev title line with blue background.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 735ba5884943ad91be660b59092ab7592c4bde07)
-rw-r--r--console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/console.c b/console.c
index 2aeb5b33c..8086bd6f2 100644
--- a/console.c
+++ b/console.c
@@ -1388,8 +1388,10 @@ static void text_console_do_init(CharDriverState *chr, DisplayState *ds, QemuOpt
char msg[128];
int len;
+ s->t_attrib.bgcol = COLOR_BLUE;
len = snprintf(msg, sizeof(msg), "%s console\r\n", chr->label);
console_puts(chr, (uint8_t*)msg, len);
+ s->t_attrib = s->t_attrib_default;
}
qemu_chr_generic_open(chr);