ZTree.com  | ZEN  | About...  

 Index   Back

[Docs] Help File Section 3.9 TFC   [Docs]

By: Ian Binnie   Homepage   Sydney  
Date: Jan 09,2008 at 17:39
In Response to: [Docs] Help File Section 3.9 TFC (Kim Henkel)

> Feel free to offer any suggested edits.

Kim,

I have made a few suggested changes:-
1. Added new commands in TFC 3.0 beta
2. Added subheadings 3.9.1 JFC Configuration Options and 3.9.2 Command-Line Options for TFC which I think clarify the use of JFC, as supplied, from the customisation to use TFC or other programs.

3.9 Jeff's File Compare

The JFC function, by default, uses Tadzio's File Compare (TFC.EXE)
program to compare two files either horizontally or vertically. The program
is called via the TFC.BAT file. This is the default program specified in the
Alt-F10 configuration options "JFC Compare" and "Alt-JFC Compare".

The JFC function is named for Jeffrey C. Johnson, the original programmer of
XTree, and the originator of the function. TFC was originally written by
Daniel Schroeder.

Subcommands while running TFC:

Esc/Enter/Q - Exit

Arrows - Scroll up, down, left, right, etc.

Space - Find next difference

+ - Find next difference

- - Find previous difference

C - Case sensitivity on/off

D - Differing characters within differing lines toggle

E - Empty line suppression toggle

H - Hex / ASCII mode toggle

L - Line number display toggle

M - Menu display on/off

O - OEM / ANSI character set toggle

S - Split screen vertical / horizontal toggle

T - Tall screen toggle (25/50 line mode)

W - White space compression toggle

1..9 - Tab width setting to 1..9 blanks (default: 4)

Alt-F8 cycles width between 80,100,120, ... screen width columns.

Alt-F9 cycles height between 25, 50, 60, 70, ... screen height lines.

Alt-F10 - Color setup utility

F1 - Help

Alt-1..9 - Size of the block of lines to match (default: 4)

Alt-S - Toggle Sync scan 100/500 lines

You can customise the JFC Compare and Alt-JFC Compare Commands
See section 3.7.1 'Configuration Page 1' (CO1)

The recommended method of invoking TFC from ZTreeWin is to change CO1E to:-

TFC.EXE -o %1 %4 %5

Win9x systems should use the ANSI version:-

TFC8.EXE -o %1 %6 %4 %5

You can add any of the Command-Line Options for TFC (below).

ZTreeWin uses the following six parameters to pass information to the compare
programs specified in the configuration options:

%1 = -z (Provides some special message handling)

%2 = First file to compare in short name format

%3 = Second file to compare in short name format

%4 = First file to compare in long name format

%5 = Second file to compare in long name format

%6 = "-aYY,XX" (Screen resolution)

If a .BAT or .CMD file is specified without using these parameters in the
configuration option, then ZTreeWin passes all six of them to it.

The standard TFC.BAT consists of a command line of the following format:

@TFC.EXE %1 %6 %4 %5

If a .EXE program is specified without using these parameters in the
configuration option, then ZTreeWin passes only the %4 %5 parameters to it,
(or %2 %3 if the [SFN] parameter is used).

3.9.2 Command-Line Options for TFC

-aYY[:XX] - Set window height to YY lines, and width to XX columns

-b - Batch mode

-c - Case insensitive compare

-d - Differing character highlighting within differing lines

-e - Empty line suppression

-h - Hex mode

-l - Line numbers not displayed

-m - Don't display menu

-n - No line numbers displayed (same as -l)

-o - OEM character set not used (uses ANSI)

-s - Sync scan +500 lines

-v - Vertically split display

-w - White space is compressed

-z - ZTreeWin is the calling program

-1..9 - Size of the block of lines to match (default: 4)

> The issue I have, is that to make this the default command, would require
> hard-coding the entire line into ZTW.EXE - which I rather not do.
> The next release will ship TFC.BAT configured just as you recommended, and
> internally, the command line is parsed and executed directly without
> actually using a command shell at all.

3.9.1 JFC Configuration Options describes how ZTreeWin works now (based on a clean install of 1.61 with beta 1.61.70)

1,456 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 52 users online (0 registered, 52 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 7:53 am UTC  |  Hits:62,397,207  (11,993 Today )
RSS Feed