source: trunk/athena/bin/xversion/xversion.man @ 1945

Revision 1945, 1.3 KB checked in by probe, 36 years ago (diff)
If a -r argument is supplied, the minor revision number is also printed. The format for the major/minor revision format is: XnRn, (ie. X11R3).
Line 
1.\" $Header: /afs/dev.mit.edu/source/repository/athena/bin/xversion/xversion.man,v 1.2 1989-06-10 11:48:46 probe Exp $
2.TH XVERSION 1 "10 June 1989"
3.UC 4
4.SH NAME
5xversion \- determine which version of X is running
6.SH SYNOPSIS
7.B xversion
8[ -r ]
9.SH DESCRIPTION
10.I Xversion
11prints to standard output the major version number of the X server
12running on screen 0 of the workstation.  If the
13.B -r
14flag is specified,
15.I xversion
16will also print out the minor protocol revision number associated with
17the X server.  If
18.I xversion
19cannot make a connection to the server, it prints the text '?unknown'.
20.PP
21The format of the output string depends on whether the
22.B -r
23flag is specified.  If it is not, the output string will just be a
24number representing the major protocol revision.  If the
25.B -r
26flag is specified, the output string is XnRn.  For example, if the X
27server that is currently running on display 0 is X11R3, the output
28string will be "X11R3".
29.PP
30.I xversion
31is intended principally as a tool to be used within shell scripts,
32such as
33.I xswitch.
34.SH BUGS
35The display name is hard-coded as 'unix:0'; i.e. the value of the
36DISPLAY environment variable is ignored.
37.PP
38The output of the minor protocol revision number is only supported if
39the current server is X11.  If an X10 server is currently running, only
40the major protocol revision number is printed.
Note: See TracBrowser for help on using the repository browser.