Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
-a Continue to check the availability of the specified protocol s even after determining that one or more previously specified protocol s are available. This is not particularly useful without the -v option (see below).
-v Print the name of the first available protocol on the standard output. When combined with the -a option (see above), print the name of all available protocol s on the standard output, separated by newlines.
-display " displaystring" Use the display displaystring when trying to determine if the x11 protocol is available.
-timeout seconds The timeout option sets the number of seconds before the winsysck will time out.
x11 Determines if a connection can be made using the X11 Window System protocol.
news Determines if a connection can be made using the Network-extensible Window System protocol.
x11news Determines if connections can be made to an X11/NeWS server. In addition to being able to establish connections using both the X11 Window System and Network-extensible Window System protocols, this requires that these two connections actually interact with the same window server.
sunview Determines if connections can be made using the SunView Window System protocol.
Determine if an X11 Window System connection can be made:
example% if winsysck x11 ; then ...
Determine if an X11 Window System connection can be made to the display \*(lqdisplayhost:0.0\*(rq:
example% if winsysck -display displayhost:0.0 x11 ; then ...
Print the known protocols which are available:
example% winsysck -v -a x11 news x11news sunview
Print which window system should be used, given the preference for NeWS over SunView, and X11/NeWS over NeWS:
example% winsysck -v x11news news sunview
There is no way to determine whether a SunView connection is actually connected to an X11/NeWS server with SunView compatibility enabled or to a SunView server.
winsysck assumes that no system running this version of __distroname__ could be running SunView, NeWS, or X11/NeWS, so doesn't bother checking for anything but X11.
None known.