summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2011-03-16 13:33:35 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-03-22 08:39:12 -0500
commit47b053690e8582ab52e09181c2c3f19a2ade134f (patch)
treed5be0b34dc4b6bfb2220de7eaaed51787faf8132
parent58fc096c76e4093d652d75c01112300a2d5f609e (diff)
downloadqemu-47b053690e8582ab52e09181c2c3f19a2ade134f.tar.gz
qemu-47b053690e8582ab52e09181c2c3f19a2ade134f.tar.bz2
qemu-47b053690e8582ab52e09181c2c3f19a2ade134f.zip
error message if user specifies curses on cmd line when curses is disabled
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--qemu-options.hx2
-rw-r--r--vl.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/qemu-options.hx b/qemu-options.hx
index 1193d946da..ef60730e47 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -634,11 +634,9 @@ the console. Therefore, you can still use QEMU to debug a Linux kernel
with a serial console.
ETEXI
-#ifdef CONFIG_CURSES
DEF("curses", 0, QEMU_OPTION_curses,
"-curses use a curses/ncurses interface instead of SDL\n",
QEMU_ARCH_ALL)
-#endif
STEXI
@item -curses
@findex curses
diff --git a/vl.c b/vl.c
index 4ca41928e7..11ad8fbf77 100644
--- a/vl.c
+++ b/vl.c
@@ -2247,11 +2247,14 @@ int main(int argc, char **argv, char **envp)
case QEMU_OPTION_nographic:
display_type = DT_NOGRAPHIC;
break;
-#ifdef CONFIG_CURSES
case QEMU_OPTION_curses:
+#ifdef CONFIG_CURSES
display_type = DT_CURSES;
- break;
+#else
+ fprintf(stderr, "Curses support is disabled\n");
+ exit(1);
#endif
+ break;
case QEMU_OPTION_portrait:
graphic_rotate = 1;
break;