Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 9d2e976f12e8ff1c53133a0ee8246441 > files > 31

python-xlib-doc-0.15-6.mga4.noarch.rpm

<HTML>
<HEAD>
<!-- Created by texi2html 1.56k from ../src/python-xlib.texi on 22 October 2013 -->

<TITLE>The Python X Library - Unix Display Names</TITLE>
</HEAD>
<BODY>
Go to the <A HREF="python-xlib_1.html">first</A>, <A HREF="python-xlib_4.html">previous</A>, <A HREF="python-xlib_6.html">next</A>, <A HREF="python-xlib_25.html">last</A> section, <A HREF="python-xlib_toc.html">table of contents</A>.
<P><HR><P>


<H2><A NAME="SEC4" HREF="python-xlib_toc.html#TOC4">Unix Display Names</A></H2>

<P>
A display name on Unix has the following syntax:



<PRE>
[hostname]:displayno[.screenno]
</PRE>

<P>
If <VAR>hostname</VAR> is omitted this refers to a display on the same
machine as the client is running on.  A Unix socket is used to connect
to the display identified by <CODE>displayno</CODE>, which must be an integer
from 0 and upwards.


<P>
If <VAR>hostname</VAR> is specified, it gives the network name or IP-number
of the machine to contact.  A TCP socket is used, connecting to port
6000+<VAR>displayno</VAR> on <VAR>hostname</VAR>.


<P>
If the display contains more than one screen, <VAR>screenno</VAR> can be
specified to make another screen than 0 the default screen.  If the
number is larger than the available maximum screen number, it will be
set to the maximum.


<P>
A few examples:



<PRE>
:0           Display 0 on this host, connects to the Unix socket
             /tmp/.X11-unix/X0
:0.1         Same as above, but specifying a different default screen

myhost:0     Display 0 on myhost, connects to TCP port 6000
myhost:10    Display 10 on myhost, connects to TCP port 6010

localhost:0  Display 0 on localhost, i.e. the same host as the client
             runs on.  Uses a TCP socket, while :0 uses a Unix socket
</PRE>

<P>
The default display name is stored in the environmental variable
<CODE>DISPLAY</CODE>.  If that isn't set, <CODE>error.DisplayNameError</CODE> is
raised. 


<P><HR><P>
Go to the <A HREF="python-xlib_1.html">first</A>, <A HREF="python-xlib_4.html">previous</A>, <A HREF="python-xlib_6.html">next</A>, <A HREF="python-xlib_25.html">last</A> section, <A HREF="python-xlib_toc.html">table of contents</A>.
</BODY>
</HTML>