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