finding how many screens i have

finding how many screens i have

Erez D erez0001 at gmail.com
Thu Dec 31 13:38:52 IST 2009


thanks

On Thu, Dec 31, 2009 at 12:48 PM, ik <idokan at gmail.com> wrote:
> Erez,
>
> You can write the following program:
>
>
> for (int count = 1; count <= argc; count ++) {
>   Display *dpy;
>   int i;
>   dpy = XOpenDisplay(argv[count])
>   i = XScreenCount(dpy);
>   printf("You have %d screens\n", i);
>   XCloseDisplay(dpy);
> }
>
> Its a quick and dirty code from my memory (haven't tried it). that counts
> for each given display string in the command line.
>
> Ido
>
> http://ik.homelinux.org/
>
>
> On Thu, Dec 31, 2009 at 11:57 AM, Erez D <erez0001 at gmail.com> wrote:
>>
>> hi
>>
>> i have a computer with multiple display adapters, and each may have
>> multiple X servers. each X server may have multiple screens.
>>
>>
>>
>> how can i get a list of all the screens i have ?
>>
>>
>> thanks,
>> erez.
>>
>> _______________________________________________
>> Linux-il mailing list
>> Linux-il at cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>



More information about the Linux-il mailing list