aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-11 23:14:59 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-11 23:14:59 +0000
commitaf3a9031061251fbbee2c1f06b876c3732cfee71 (patch)
treef9e30dd12644a08615dae114db9ab8e93a5a1054 /vl.c
parent37a4c5392d9590e9ec1fc4a78b23f308c179e619 (diff)
New features for QEMU text console, by Stefan Weil.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3068 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/vl.c b/vl.c
index 0d059f40f2..497a1e5fac 100644
--- a/vl.c
+++ b/vl.c
@@ -2923,7 +2923,9 @@ CharDriverState *qemu_chr_open(const char *filename)
const char *p;
if (!strcmp(filename, "vc")) {
- return text_console_init(&display_state);
+ return text_console_init(&display_state, 0);
+ } else if (strstart(filename, "vc:", &p)) {
+ return text_console_init(&display_state, p);
} else if (!strcmp(filename, "null")) {
return qemu_chr_open_null();
} else
@@ -7970,7 +7972,7 @@ int main(int argc, char **argv)
devname);
exit(1);
}
- if (!strcmp(devname, "vc"))
+ if (strstart(devname, "vc", 0))
qemu_chr_printf(serial_hds[i], "serial%d console\r\n", i);
}
}
@@ -7984,7 +7986,7 @@ int main(int argc, char **argv)
devname);
exit(1);
}
- if (!strcmp(devname, "vc"))
+ if (strstart(devname, "vc", 0))
qemu_chr_printf(parallel_hds[i], "parallel%d console\r\n", i);
}
}