mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 01:43:39 +00:00
qemu-options: Rework the help text of the '-display' option
Improve the help text of the "-display" option:
- Only print the options that we have enabled in the binary
(similar to what we do for other options like -netdev already)
- The "frame=on|off" from "-display sdl" has been removed in commit
09bd7ba9f5
("Remove deprecated -no-frame option"), so we should
not show this in the help text anymore
- The "-display egl-headless" line was missing a "\n" at the end
- Indent the default display text in a nicer way
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20191023120129.13721-1-huth@tuxfamily.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
36609b4fa3
commit
88b40c683f
|
@ -1546,26 +1546,38 @@ STEXI
|
||||||
ETEXI
|
ETEXI
|
||||||
|
|
||||||
DEF("display", HAS_ARG, QEMU_OPTION_display,
|
DEF("display", HAS_ARG, QEMU_OPTION_display,
|
||||||
|
#if defined(CONFIG_SPICE)
|
||||||
"-display spice-app[,gl=on|off]\n"
|
"-display spice-app[,gl=on|off]\n"
|
||||||
"-display sdl[,frame=on|off][,alt_grab=on|off][,ctrl_grab=on|off]\n"
|
#endif
|
||||||
|
#if defined(CONFIG_SDL)
|
||||||
|
"-display sdl[,alt_grab=on|off][,ctrl_grab=on|off]\n"
|
||||||
" [,window_close=on|off][,gl=on|core|es|off]\n"
|
" [,window_close=on|off][,gl=on|core|es|off]\n"
|
||||||
"-display gtk[,grab_on_hover=on|off][,gl=on|off]|\n"
|
#endif
|
||||||
"-display vnc=<display>[,<optargs>]\n"
|
|
||||||
"-display curses[,charset=<encoding>]\n"
|
|
||||||
"-display none\n"
|
|
||||||
"-display egl-headless[,rendernode=<file>]"
|
|
||||||
" select display type\n"
|
|
||||||
"The default display is equivalent to\n"
|
|
||||||
#if defined(CONFIG_GTK)
|
#if defined(CONFIG_GTK)
|
||||||
"\t\"-display gtk\"\n"
|
"-display gtk[,grab_on_hover=on|off][,gl=on|off]|\n"
|
||||||
|
#endif
|
||||||
|
#if defined(CONFIG_VNC)
|
||||||
|
"-display vnc=<display>[,<optargs>]\n"
|
||||||
|
#endif
|
||||||
|
#if defined(CONFIG_CURSES)
|
||||||
|
"-display curses[,charset=<encoding>]\n"
|
||||||
|
#endif
|
||||||
|
#if defined(CONFIG_OPENGL)
|
||||||
|
"-display egl-headless[,rendernode=<file>]\n"
|
||||||
|
#endif
|
||||||
|
"-display none\n"
|
||||||
|
" select display backend type\n"
|
||||||
|
" The default display is equivalent to\n "
|
||||||
|
#if defined(CONFIG_GTK)
|
||||||
|
"\"-display gtk\"\n"
|
||||||
#elif defined(CONFIG_SDL)
|
#elif defined(CONFIG_SDL)
|
||||||
"\t\"-display sdl\"\n"
|
"\"-display sdl\"\n"
|
||||||
#elif defined(CONFIG_COCOA)
|
#elif defined(CONFIG_COCOA)
|
||||||
"\t\"-display cocoa\"\n"
|
"\"-display cocoa\"\n"
|
||||||
#elif defined(CONFIG_VNC)
|
#elif defined(CONFIG_VNC)
|
||||||
"\t\"-vnc localhost:0,to=99,id=default\"\n"
|
"\"-vnc localhost:0,to=99,id=default\"\n"
|
||||||
#else
|
#else
|
||||||
"\t\"-display none\"\n"
|
"\"-display none\"\n"
|
||||||
#endif
|
#endif
|
||||||
, QEMU_ARCH_ALL)
|
, QEMU_ARCH_ALL)
|
||||||
STEXI
|
STEXI
|
||||||
|
|
Loading…
Reference in a new issue