Skip to content

Commit 6695e4c

Browse files
committed
softmmu/vl: Deprecate the -sdl and -curses option
It's not that much complicated to type "-display sdl" or "-display curses", so we should not clutter our main option name space with such simple wrapper options and rather present the users with a concise interface instead. Thus let's deprecate the "-sdl" and "-curses" wrapper options now. Message-Id: <[email protected]> Reviewed-by: Gerd Hoffmann <[email protected]> Acked-by: Peter Krempa <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent d46156f commit 6695e4c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/about/deprecated.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,16 @@ Use ``-display sdl,grab-mod=lshift-lctrl-lalt`` instead.
148148

149149
Use ``-display sdl,grab-mod=rctrl`` instead.
150150

151+
``-sdl`` (since 6.2)
152+
''''''''''''''''''''
153+
154+
Use ``-display sdl`` instead.
155+
156+
``-curses`` (since 6.2)
157+
'''''''''''''''''''''''
158+
159+
Use ``-display curses`` instead.
160+
151161

152162
Plugin argument passing through ``arg=<string>`` (since 6.1)
153163
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

softmmu/vl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,6 +2889,8 @@ void qemu_init(int argc, char **argv, char **envp)
28892889
dpy.type = DISPLAY_TYPE_NONE;
28902890
break;
28912891
case QEMU_OPTION_curses:
2892+
warn_report("-curses is deprecated, "
2893+
"use -display curses instead.");
28922894
#ifdef CONFIG_CURSES
28932895
dpy.type = DISPLAY_TYPE_CURSES;
28942896
#else
@@ -3262,6 +3264,7 @@ void qemu_init(int argc, char **argv, char **envp)
32623264
"-display ...,window-close=off instead.");
32633265
break;
32643266
case QEMU_OPTION_sdl:
3267+
warn_report("-sdl is deprecated, use -display sdl instead.");
32653268
#ifdef CONFIG_SDL
32663269
dpy.type = DISPLAY_TYPE_SDL;
32673270
break;

0 commit comments

Comments
 (0)