1 .\" Copyright (c) 1990, 2014, Oracle and/or its affiliates. All rights reserved.
3 .\" Permission is hereby granted, free of charge, to any person obtaining a
4 .\" copy of this software and associated documentation files (the "Software"),
5 .\" to deal in the Software without restriction, including without limitation
6 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 .\" and/or sell copies of the Software, and to permit persons to whom the
8 .\" Software is furnished to do so, subject to the following conditions:
10 .\" The above copyright notice and this permission notice (including the next
11 .\" paragraph) shall be included in all copies or substantial portions of the
14 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 .\" THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 .\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 .\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 .\" DEALINGS IN THE SOFTWARE.
21 .TH winsysck 1 "2 May 2014"
22 .IX "winsysck" "" "\f3winsysck\f1(1) \(em check window protocols" ""
23 .IX "window" "check" "window" "check system protocols \(em \f3winsysck\f1(1)" ""
25 winsysck \- check which window system protocols are available
31 .BI \-display " displaystring"
33 .BI \-timeout " seconds"
40 command determines if the specified window system \fIprotocol\fP
41 is available to the user. By default, the
43 command exits as soon as the first available
45 is found, although this behaviour can be modified by the
49 The following options can be used to modify the behaviour of the
54 Continue to check the availability of the specified
56 even after determining that one or more previously specified
58 are available. This is not particularly useful without the
63 Print the name of the first available
65 on the standard output. When combined with the
67 option (see above), print the name of all available
69 on the standard output, separated by newlines.
71 .BI \-display " displaystring"
74 when trying to determine if the
79 .BI \-timeout \ seconds
82 option sets the number of
84 before the winsysck will time out.
86 The following are known values for
90 Determines if a connection can be made using the X11 Window
94 Determines if a connection can be made using the
95 Network-extensible Window System protocol.
98 Determines if connections can be made to an X11/NeWS server.
99 In addition to being able to establish connections using both
100 the X11 Window System and Network-extensible Window System protocols,
101 this requires that these two connections actually interact with
102 the same window server.
105 Determines if connections can be made using the SunView Window
109 Determine if an X11 Window System connection can be made:
114 example% if winsysck x11 ; then ...
119 Determine if an X11 Window System connection can be made to the
120 display \*(lqdisplayhost:0.0\*(rq:
125 example% if winsysck -display displayhost:0.0 x11 ; then ...
130 Print the known protocols which are available:
135 example% winsysck -v -a x11 news x11news sunview
140 Print which window system should be used, given the preference
141 for NeWS over SunView, and X11/NeWS over NeWS:
146 example% winsysck -v x11news news sunview
154 There is no way to determine whether a SunView connection is
155 actually connected to an X11/NeWS server with SunView
156 compatibility enabled or to a SunView server.
158 winsysck assumes that no system running this version of __distroname__
159 could be running SunView, NeWS, or X11/NeWS, so doesn't bother checking
160 for anything but X11.
165 Exit status is 0 if any
168 1 if none are available, 2 for usage errors.