home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d770
/
uedit.lha
/
Uedit
/
Ustar.LZH
/
PrintTest
< prev
next >
Wrap
Text File
|
1989-05-10
|
6KB
|
198 lines
PrintTest
This is a test document associated with Ustar v0.90.
It has two purposes.
It will demonstrate the use of dot commands and the print processing.
And, it will let you find out what the capabilities of your printer are
when using a printer through Preferences.
Following this paragraph are a bunch of dot commands. These will appear
on-screen only, not in a printout done with print processing. Usually, dot
commands are at the start of a file; I have put them here so that this header
section is not overshadowed by the slightly strange-looking bunch of dot
commands.
.mt 5 Top margin of 5 lines
.mb 5 Bottom margin of 5 lines
.. This is a comment line. Next two lines are a header and footer.
.he PrintTest Testing of Printing Page #
.fo @ <-- System date Page #
.. This next command will send a code direct to the printer; it puts up a re-
.. quester first, so if you're playing around, you can skip it.
.po 5 Page offset of 5 (printing starts in column 5)
.pl 66 Page length is 66 lines
.. The next line, when print-processed, will be a page break.
.pa
How To Test
You should have Print Preferences set to 2 for this test (this is the
way that Ustar starts up, so don't worry about it if you haven't set it).
With this document as the current document in Ustar, do ^KP (or the
Print - Actions - File Print menu selection) to begin the print process.
If you just want to see what the printer codes in the section below do,
answer No to the "Print with Headers, etc." requester. To see how the print
processing and dot commands work, answer Yes to the requester.
This line is before any print controls have been used.
Note that if your printer is set up via its DIP switches, cartridges, or
whatever to already be in some special mode, some of these may not work or
will look incorrect.
Also note that when it says below "if your printer supports it", it really
refers to the printer driver you have chosen in the Amiga's Preferences to
drive your printer. Your printer may be capable of doing the action but the
printer driver may not support it.
The codes in paretheses, e.g. ^PA, are the Ustar codes to activate or toggle
the described feature on or off.
Now we will issue the master Reset code to the printer, overriding any
Preferences settings. Normally you probably won't need to do this, but it
sets up a "plain" environment for the tests below.
This line is after the master Reset code, before any others. If all is as it
should be, this should be in a plain print style at 10 characters per inch.
/
This line should be in Elite pitch (12 characters per inch). (^PA)
.
This line should be back to the normal Pica pitch (10 char. per inch) (^PN)
*
This line should be bold, if your printer supports Boldface printing. (^PB)
+
This should be back to normal.
This line should be in doublestrike, if your printer supports it. (^PD)
This should be back to normal.
(
This line should be underlined, if your printer does underlining. (^PS)
)
This should be back to normal.
This line should be in Near Letter Quality, if your printer supports it. (^PX)
:
This should be back to normal.
=
This line should be in subscript, if your printer supports it. (^PV)
>
Back to normal
This line should be in superscript, if your printer supports it. (^PT)
<
Back to normal
&
This line should be in italics, if your printer supports it. (^PY)
'
Back to normal.
This line should be in condensed (15 characters per inch). (^PQ)
Back to normal.
This line should be in wide print. (^PW)
Back to normal.
That completes the WordStar (tm) control codes supported in this version of
Ustar. Now, we will also try a few of the other Preferences codes.
If you have a color printer, the following lines should print text in all the
colors you have. (Background color for all is color 0).
,>-OColor 0 (30)
,?-OColor 1 (31)
,@-OColor 2 (32)
,A-OColor 3 (33)
,B-OColor 4 (34)
,C-OColor 5 (35)
,D-OColor 6 (36)
,E-OColor 7 (37)
,F-OColor 8 (38)
,G-OColor 9 (39)
If your printer does background colors, these print background for all
the colors you have:
,>-HColor 0 (40)
,>-IColor 1 (41)
,>-JColor 2 (42)
,>-KColor 3 (43)
,>-LColor 4 (44)
,>-MColor 5 (45)
,>-NColor 6 (46)
,>-OColor 7 (47)
,>-PColor 8 (48)
,>-QColor 9 (49)
,>-O
Back to normal color 0 for foreground and color 7 for background.
W
Ok, if this is supported on your printer, this and the
next several lines should be printing at 8 lines per
inch (1/8" line spacing), looking closer together
than normal.
Note that changing line spacing like this will mess
up your page formatting past that point, since we told
it above (with .pl 66) that the document is 66 lines per
page, and we just changed it to 88 lines per page, so this
page and any after it will be messed up.
For this reason, it is a good idea to stick to one line
spacing throughout a document, or else do your formatting
manually or split out sections that need special formatting
to a separate file.
X
Now it should be back to normal line spacing of
6 lines per inch (1/6" line spacing), and should
look like the rest of this printout.
There are many other Preferences printer codes, see Uedit documentation or the
reference list in UstarHelp!, but this completes the illustration of those
that are the most common and useful.
End of PrintTest