home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug082.arc
/
POWCMDS.POW
< prev
next >
Wrap
Text File
|
1979-12-31
|
4KB
|
114 lines
:PN,0
:DM,15,65
:DB,1,15
:PT,5,0
:PB,5,0
:PL,55
:JT
:PG
:CM,^^"POW" SPECIAL CHARACTERS FOR CONTROL\
:BP
^CONTROL ^K PRECEDING A CHARACTER CAUSES THAT CHARACTER TO BE
PRINTED AS IT APPEARS WITH NO DECODING. ^THIS IS USED FOR EXAMPLE
TO PRINT A COLON WHICH IS NORMALLY USED TO INDICATE A COMMAND
FOLLOWING AND THUS IS NOT PRINTED. ^SO, ^^CNTRL K\: WOULD CAUSE
THE PRINTING OF THE COLON.
:BP
^ (^^ASCII 5E)\ IS USED TO INDICATE UPPER CASE SHIFT. ^IF
ONLY ONE IS USED THEN ONLY THE CHARACTER IMMEDIATELY
AFTER IT IS UPPER CASE. ^IF TWO ARE USED, THEN ALL ALPHABETIC
CHARACTERS ARE UPPER CASE UNTIL THE DOWNSHIFT CHARACTER
\ (^^ASCII 5C)\ IS ENCOUNTERED ARE UPPER CASE. ^THERE IS NO
EFFECT ON NON-ALPHABETIC CHARACTERS.
:BP
:CM,^^"POW" COMMANDS AND DEFAULT VALUES\
:BP
:CM,^^:DM,10,70\
:BP,^DEFINE MARGINS, LEFT MARGIN, RIGHT MARGIN
:BP
:CM,:^^DT,15,22,30,45\
:BP,^DEFINE TABS UP TO A MAXIMUM OF 14 TABS. ^TABS MUST BE
IN ASCENDING ORDER AND NO ERROR CHECKING IS DONE ON THEM.
:BP
:CM,^^:PL,45\
:BP,^DEFINE PAGE LENGTH (^THE TEXT PORTION) TO BE 45 LINES LONG.
:BP
:CM,^^:JT\
:BP,^BEGIN TOTAL JUSTIFICATION MODE WITH AUTOMATIC SPACE FILLING.
:BP
:CM,^^:JE\
:BP,^CLOSE PRESENT LINE AND END ALL JUSTIFICATION.
:BP
:CM,^^:JL\
:BP,^BEGIN LEFT ONLY JUSTIFICATION MODE.
:BP :CM,^^:CT,POSITION,TEXT\
:BP,^CENTER THE TEXT ABOUT THE POSITION (COUNTING FROM THE LEFT
OF THE PAGE, NOT THE MARGIN) THAT IS SPECIFIED. ^NOTE: ^THE LINE
IS NOT PRINTED UNTIL THE :^^CC\ COMMAND IS ENCOUNTERED.
:BP :CM,:^^CC\
:BP,^CLOSE CENTERING COMMAND. ^THIS COMMAND ^^MUST\ BE
ISSUED AFTER THE LAST :^^CT\ COMMAND.
^THIS CLOSES THE OUTPUT LINE.
:BP
:CM,^^:LF,"N"\
:BP,^LINE ^FEED THE PAGE UP "N" TIMES. ^THIS IS ACTUALLY A
^^CR-LF\ SEQUENCE TO THE PRINTER "N" TIMES.
:BP :CM,^^:BP\
:BP,^BREAK FOR A NEW PARAGRAPH. ^SINCE CARRIAGE RETURNS ARE
CONVERTED TO SPACES DURING EITHER TOTAL OR LEFT
JUSTIFICATION, IT IS NECESSARY TO BE ABLE TO SPECIFY THE
BEGINNING OF A NEW PARAGRAPH WHILE IN THESE MODES. ^THIS IS
DONE WITH THIS COMMAND. ^THE PROGRAM CLOSES THE PRESENT LINE,
THEN DOES THE SPECIFIED NUMBER OF LINE FEEDS, AND THEN
INDENTS TO THE SPECIFIED POSITION.(^SEE COMMAND :^^DB\ BELOW.)
:BP :CM,^^:DB,1,15\
:BP,^DEFINE THE PARAGRAPH BREAK TO BE A NUMBER OF LINE FEED'S
(DEFAULT = 1) AND AN INDENTION TO THE POSITION SPECIFIED.
(^DEFAULT = LEFT MARGIN.) ^THE INDENTION CAN BE SET AT ANY
POSITION EITHER TO RIGHT OR LEFT OF THE LEFT MARGIN.
:BP
:CM,^^:NP\
:BP,^NEW ^PAGE. ^FORCES THE CLOSE OF THE PRESENT PAGE,FEEDS
IT OUT OF THE PRINTER, AND THEN BEGINS A NEW PAGE.
:BP :CM,^^:CM,TEXT\
:BP,^AUTOMATICALLY CENTERS THE TEXT BETWEEN THE LEFT
MARGIN AND RIGHT MARGIN. ^THIS COMMAND DOES ^^NOT\ NEED TO BE
CLOSED WITH A :^^CC\ COMMAND.
:BP
:CM,^^:PN,0\
:BP,^SETA THE PAGE NUMBER TO THE SPECIFIED VALUE. (MAXIMUM
IS 256)
:BP :CM,^^:SP,1\
:BP,^SET THE SPACING. 1 = SINGLE SPACE, 2 = DOUBLE SPACE,
ETC. ^DEFAULT IS 1 OR SINGLE SPACING.
:BP :CM,^^:PT,LF,N\
:BP,^DEFINE THE TOP OF THE PAGE TO BE ^^LF\ (^DEFAULT = 10)
LINES LONG, WITH THE TITLE ON LINE ^N. ^IF ^N IS ZERO,
THEN NO TITLE IS PRINTED.^^ LF\ CAN ALSO BE ZERO FOR A
COMPLETELY FILLED PAGE.
:BP :CM,^^:PB,LF,N\
:BP,^DEFINE THE PAGE BOTTOM. ^SEE :^^PT\ ABOVE.
:BP :CM,^^:TM,POS,TEXT\
:BP,^DEFINE THE TOP OF PAGE MESSAGE (IE THE TITLE). ^IT WILL
BE PRINTED AT ^^POS\ AND ^^TEXT\ WILL BE THE MESSAGE.
FOR PAGE NUMBERING, A COLON WILL BE REPLACED BY THE CURRENT
PAGE NUMBER WHEN FOUND IN THE ^^TEXT\. :BP
^EXAMPLE:":^^TM,45,PAGE\-:-" WOULD CAUSE THE TOP MESSAGE
TO BE PRINTED 45 SPACES FROM THE LEFT OF THE PAGE AS
"^^PAGE-4-"\ WHEN PAGE 4 IS PRINTED.
:BP :CM,^^:BM,POS,TEXT\
:BP,^DEFINES THE BOTTOM OF PAGE MESSAGE.^SEE :^^TM\ ABOVE.
:BP :CM,^^:PG\
:BP,^IMMEDIATELY FORCES THE BEGINNING OF A NEW PAGE (IT WILL
NOT FINISH THE PRESENT PAGE). ^THIS COMMAND SHOULD BE ALWAYS
GIVEN AT THE BEGINNING OF A NEW TEXT FILE.
:BP :CM,^^:OF\
:BP,^TURNS OFF THE PRINTER. ^THE PROGRAM CONTINUES TO
PROCESS TEXT AS IF IT WERE ON, BUT THERE IS NO OUTPUT.
:BP,:CM,^^:ON\
:BP,^THIS COMMAND WILL TURN ON THE PRINTER AGAIN AFTER
IT WAS TURNED OFF BY THE :^^OF\ COMMAND. ^THIS ALLOWS
A SECTION OF THE TEXT INPUT TO BE SKIPPED OVER WITHOUT
PRINTING.
:JE