<div dir="ltr">Erez,<br><br>You can write the following program:<br><br><br>for (int count = 1; count <= argc; count ++) {<br> Display *dpy;<br> int i;
<br> dpy = XOpenDisplay(argv[count])<br> i = XScreenCount(dpy);<br> printf("You have %d screens\n", i);<br> XCloseDisplay(dpy);<br>}<br><br>Its a quick and dirty code from my memory (haven't tried it). that counts for each given display string in the command line.<br>
<br>Ido<br><br clear="all"><a href="http://ik.homelinux.org/">http://ik.homelinux.org/</a><br>
<br><br><div class="gmail_quote">On Thu, Dec 31, 2009 at 11:57 AM, Erez D <span dir="ltr"><<a href="mailto:erez0001@gmail.com">erez0001@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi<br>
<br>
i have a computer with multiple display adapters, and each may have<br>
multiple X servers. each X server may have multiple screens.<br>
<br>
<br>
<br>
how can i get a list of all the screens i have ?<br>
<br>
<br>
thanks,<br>
erez.<br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div><br></div>