Section: PJL TOOLS (1)
Updated: March 28, 1996
Return to Main Contents
xdiff - graphical diff for X
provides a graphical front-end for
showing two files side-by-side
with differences highlighted in color.
matching lines are white
and different lines are red.
Lines that are in one file but not the other are green
and ``holes'' in the other file are dark gray.
accepts all of the standard X Toolkit command line options
along with the additional options listed below.
relevant options from
have the same letters.
Ignores trailing blanks (spaces and tabs)
and treats other strings of blanks as equivalent.
Exit immediately, without opening a window,
if the two files are identical.
Ignores the case of letters;
for example, ``A'' will compare equal to ``a''.
Prints a 165-column wide text-only version to stdout.
(The code was useful for debugging, so I left it in there.)
Files are separated by the | (pipe) character.
For each file,
matching lines are preceded by two spaces,
different lines are preceded by ``C~'',
Lines that are in file1 only are preceded by ``<~'',
in file2 only, ``>~'',
and ``holes'' are preceded by``X~''.
Print the version number to stderr and exit.
Ignores all blanks (space and tab characters)
and treats all other strings of blanks as equivalent;
```if~(~a~==~b~)'' will compare equal to ``if(a==b)''.
The application class name is XDiff.
It understands all of the core resource names and classes as well as:
- sameForeground (class SameForeground)
The foreground (text) color used when lines are the same.
- sameBackground (class SameBackground)
The background color used when lines are the same.
- diffForeground (class DiffForeground)
The foreground (text) color used when lines are different.
- diffBackground (class DiffBackground)
The background color used when lines are different.
- newForeground (class NewForeground)
The foreground (text) color used when lines are new.
- newBackground (class NewBackground)
The background color used when lines are new.
- holeColor (class HoleColor)
The color used for ``holes'' in files, i.e.,
lines that do not exist.
provides the following actions for use in event translations:
Causes the application to quit immediately.
The default translation table is:
- *translations: #override None<Key>q: quit()
The geometry specification is interpreted as
<columns>x<rows> like an
except that the <columns> specifies
the number of columns for one file or half the window.
Thus, a geometry specification of 80x24 will result in a window
wide enough to contain two 80 by 24 windows.
Paul J. Lucas
- X DEFAULTS
- SEE ALSO
This document was created by
using the manual pages.
Time: 23:34:46 GMT, September 27, 2019