Skip to contentSkip to conversation

ui: improve -show-cursor deprecation message

PATCH New Gerd Hoffmann 1 participant 1 message Apr 7, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 ui: improve -show-cursor deprecation message

Specifically explain what users should do in case they don't use -display yet and depend on the qemu picking the ui for them.

---
 softmmu/vl.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
softmmu/vl.c +4 -2
index 58a40bcfc19c..0640d481df06 100644
@@ -3531,8 +3531,10 @@ void qemu_init(int argc, char **argv, char **envp)
                 no_shutdown = 1;
                 break;
             case QEMU_OPTION_show_cursor:
-                warn_report("The -show-cursor option is deprecated, "
-                            "use -display {sdl,gtk},show-cursor=on instead");
+                warn_report("The -show-cursor option is deprecated. Please "
+                            "add show-cursor=on to your -display options.");
+                warn_report("When using the default display you can use "
+                            "-display default,show-cursor=on");
                 dpy.has_show_cursor = true;
                 dpy.show_cursor = true;
                 break;
Signature · 1 line
2.18.2