[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/7] error message if user specifies curses on cmd l
From: |
Jes . Sorensen |
Subject: |
[Qemu-devel] [PATCH 6/7] error message if user specifies curses on cmd line when curses is disabled |
Date: |
Wed, 16 Mar 2011 13:33:35 +0100 |
From: Jes Sorensen <address@hidden>
Signed-off-by: Jes Sorensen <address@hidden>
---
qemu-options.hx | 2 --
vl.c | 7 +++++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index 1193d94..ef60730 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 1104636..4ab3d79 100644
--- a/vl.c
+++ b/vl.c
@@ -2246,11 +2246,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;
--
1.7.4
- [Qemu-devel] [PATCH v5 0/7] Introduce -display and make VNC optional, Jes . Sorensen, 2011/03/16
- [Qemu-devel] [PATCH 1/7] Consolidate DisplaySurface allocation in qemu_alloc_display(), Jes . Sorensen, 2011/03/16
- [Qemu-devel] [PATCH 2/7] Introduce -display argument, Jes . Sorensen, 2011/03/16
- [Qemu-devel] [PATCH 3/7] Introduce -display none, Jes . Sorensen, 2011/03/16
- [Qemu-devel] [PATCH 4/7] Add support for -display vnc, Jes . Sorensen, 2011/03/16
- [Qemu-devel] [PATCH 5/7] error message if user specifies SDL cmd line option when SDL is disabled, Jes . Sorensen, 2011/03/16
- [Qemu-devel] [PATCH 6/7] error message if user specifies curses on cmd line when curses is disabled,
Jes . Sorensen <=
- [Qemu-devel] [PATCH 7/7] Make VNC support optional, Jes . Sorensen, 2011/03/16
- Re: [Qemu-devel] [PATCH v5 0/7] Introduce -display and make VNC optional, Anthony Liguori, 2011/03/22