提交 47b05369 编写于 作者: J Jes Sorensen 提交者: Anthony Liguori

error message if user specifies curses on cmd line when curses is disabled

Signed-off-by: NJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 58fc096c
...@@ -634,11 +634,9 @@ the console. Therefore, you can still use QEMU to debug a Linux kernel ...@@ -634,11 +634,9 @@ the console. Therefore, you can still use QEMU to debug a Linux kernel
with a serial console. with a serial console.
ETEXI ETEXI
#ifdef CONFIG_CURSES
DEF("curses", 0, QEMU_OPTION_curses, DEF("curses", 0, QEMU_OPTION_curses,
"-curses use a curses/ncurses interface instead of SDL\n", "-curses use a curses/ncurses interface instead of SDL\n",
QEMU_ARCH_ALL) QEMU_ARCH_ALL)
#endif
STEXI STEXI
@item -curses @item -curses
@findex curses @findex curses
......
...@@ -2247,11 +2247,14 @@ int main(int argc, char **argv, char **envp) ...@@ -2247,11 +2247,14 @@ int main(int argc, char **argv, char **envp)
case QEMU_OPTION_nographic: case QEMU_OPTION_nographic:
display_type = DT_NOGRAPHIC; display_type = DT_NOGRAPHIC;
break; break;
#ifdef CONFIG_CURSES
case QEMU_OPTION_curses: case QEMU_OPTION_curses:
#ifdef CONFIG_CURSES
display_type = DT_CURSES; display_type = DT_CURSES;
break; #else
fprintf(stderr, "Curses support is disabled\n");
exit(1);
#endif #endif
break;
case QEMU_OPTION_portrait: case QEMU_OPTION_portrait:
graphic_rotate = 1; graphic_rotate = 1;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册