Revision 3264ff12

b/qemu-options.hx
592 592

  
593 593
DEF("display", HAS_ARG, QEMU_OPTION_display,
594 594
    "-display sdl[,frame=on|off][,alt_grab=on|off][,ctrl_grab=on|off]\n"
595
    "            [,window_close=on|off]|curses|none\n"
595
    "            [,window_close=on|off]|curses|none|\n"
596
    "            vnc=<display>[,<optargs>]\n"
596 597
    "                select display type\n", QEMU_ARCH_ALL)
597 598
STEXI
598 599
@item -display @var{type}
......
615 616
user. This option differs from the -nographic option in that it
616 617
only affects what is done with video output; -nographic also changes
617 618
the destination of the serial and parallel port data.
619
@item vnc
620
Start a VNC server on display <arg>
618 621
@end table
619 622
ETEXI
620 623

  
b/vl.c
1611 1611
        fprintf(stderr, "SDL support is disabled\n");
1612 1612
        exit(1);
1613 1613
#endif
1614
    } else if (strstart(p, "vnc", &opts)) {
1615
        display_remote++;
1616

  
1617
        if (*opts) {
1618
            const char *nextopt;
1619

  
1620
            if (strstart(opts, "=", &nextopt)) {
1621
                vnc_display = nextopt;
1622
            }
1623
        }
1624
        if (!vnc_display) {
1625
            fprintf(stderr, "VNC requires a display argument vnc=<display>\n");
1626
            exit(1);
1627
        }
1614 1628
    } else if (strstart(p, "curses", &opts)) {
1615 1629
#ifdef CONFIG_CURSES
1616 1630
        display = DT_CURSES;

Also available in: Unified diff