Freedom™ reads FREEDOM.CNF and searches the path specified by #IMAGEPATH for the XIMG format files FREEDMxx.IMG where 'xx' represents the number of bitplanes, for example: Monochrome resolutions have 1 bitplane and load: FREEDM01.IMG, 16 colour resolutions have 4 bitplanes and load: FREEDM04.IMG, 256 colour resolutions have 8 bitplanes and load: FREEDM08.IMG.
After loading the appropriate image (if available) it's divided into individual icons, one for each masks defined under the #IMAGEMASKS section of FREEDOM.CNF. For example if the loaded image is 16x64 pixels high/wide and 4 masks are defined the image is divided into 4 separate 16x16 pixel icons.
Note! If you add a new mask line or change the height of the font you'll need to edit the appropriate image to ensure sensible icon display. Always work on a back-up!
Freedom™ makes it easy to format the entries in the directory window to suit your needs. In addition to the standard 8.3 format (8 character filename followed by a period and 3 character extender) other file systems which use long filenames or other formats can be accessed.
The display format is handled using a single format string in which the percent character '%' plays a special role. Let's set up a string which formats the directory window listing to display filename, size, date and time as follows:
:
EVEREST PRG 154.510 29.10.94 09:41
EVEREST INF 840 09.01.95 11:36
:
First the filename is listed in standard 8.3 format followed by the size up to a maximum 9 digits followed by the date and time without seconds. Here's the format string:
#FORMAT %-F %-E%9K %T%2D.%2M.%2Y %T%h:%m
The format string uses the '%' character as a place marker for each attribute. The following attributes are available:
F Filename up to the last period (if period used)
E Filename from the last point (if extension used)
N Full (unformatted) filename
D Day
M Month
Y Year (without century 00-99)
h Hour
m Minutes
s Seconds
S Size in Bytes of file in '13456789' format, folders excluded
P Size in Bytes of file in '1.345.678' format, folders excluded
K Size in Bytes of file in '13456789' format, folders '<folder>'
T Use the clock symbol for today's files, otherwise nothing
A[xx] Attribute bit of the files [-a] Default character
W[xx] Write protected file status [-r] Default character
H[xx] Hidden bit file status [-h] Default character
Z[xx] System bit file status [-s] Default character
X File type
a Any ASCII character (e.g, %13a for CR or %10a for LF)
% The percent character used to denote attributes
Tabs (Pseudo attributes):
L Left justified tab (character by character)
C Centred tab (character by character)
R Right justified tab (character by character)
l Left justified tab (pixel by pixel)
c Centred tab (pixel by pixel)
r Right justified tab (pixel by pixel)
(Suggestions for other attributes welcomed!)
Each attribute displayed by Freedom™ has a default width. To increase or decrease the width, you can set the new width directly between the '%' character and the attribute (e.g. %9P). Freedom™ right-justifies all attributes narrower than the field width. If you'd prefer to left-justify attributes insert a hyphen '-' immediately after the '%' part of the attribute, the '%-20N' start of the following example does this.
On a system supporting long filenames it's not so important to use separate attributes for the filename and extender, here's an example:
#LONGFORMAT %-20N%9P %2D.%2M.%2Y
The directory window output leaves more room for the long filenames:
:
EVEREST.PRG 154.510 29.10.94
EVEREST.INF 840 09.01.95
:
With the introduction of tab handling (%L,%C,%R,%l,%c,%r) Freedom™ can now make practical use of proportional fonts. The format string is used as the horizontal 'cursor' which, together with the tab attributes, provide good control over the directory window display. %l or %L displays left justified output to the right of the cursor position, %c and %C display centred output around the cursor postion and %r and %R display right justified output to the left of the cursor. All the tab attributes are strung together into a Format string. Offset values are always relative to the previous tab position. Negative tabs are allowed and text could overlay other text although this is likely to result in an untidy display (!) If no tabs are active, each attribute has a default width, which is padded with space characters to the left and right as needed to fit the default width. This is not desirable when using proportional fonts, so it's important that the first attribute in the format string is a tab. Here's an (ugly) example:
%12R%N%6C%P%6L%2D.%2M.%2Y %T%h:%m