home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
bbs_opus
/
oac121.arj
/
OACDEMO.BBS
< prev
next >
Wrap
File List
|
1990-05-22
|
9KB
|
263 lines
FY:\EDTORIAL
₧The ƒOpus/Avatar COMPiler₧ is an ¥OECC₧ clone with many improvements. Most
improvements are concerned with the new codes supported by OPUS 1.1x,
but the compiler itself also offers a great enhancement over ¥OECC₧, most
notably in the way it handles privileges and colours. This file gives you
some examples on this.
EV00494e
You may not get the full advantage to this demo, as you do not accept ANSI
or AVATAR control codes to control colours.
E₧C¢olours, ₧P¢rivileges, ₧S¢upport programs, ₧H¢ow do I get it or ₧Q¢uit [c,P,s,h,q] RCPQSH|
V00719eColours, Priviliges, Support programs, How do I get it or Quit [c,P,s,h,q] RCPQSH|
₧UQâQ
USV07128
UCV03215
UHV07849
In ¥OECC₧ you had to remember several codes for controlling display based upon
privilege levels, some of them are:
Ü
[@LINE] - Only see rest of line if Above or equal to @
[@FILE] - Quit file is less than @
[@XCLUDE] - If not equal to @, skip rest of line
₧
and the problem with these is that it is impossible to remember which tokens
means See rest of line, which means Don't see rest of line, Which is Above,
Above or Equal or Below. ƒOpus/Avatar COMPiler₧ introduces some new tokens that
should be more easy to understand, plus it will enable some privilege combina-
tions that are not normally possible with a single Opus/Avatar code by combi-
ning two codes on the fly:
Ü[<Operator> <Privilege> <Action>]₧
ƒ
Continue ¢[₧Y¢,n]ƒ RYNQXT|
₧UNQ
UQQ
UXQ
UTT
Ü[<Operator> <Privilege> <Action>]₧
where
ƒ<Operator>₧ is
¢ABOVE₧, ¢GT ÜAbove the privilege₧
¢BELOW₧, ¢LT ÜBelow the privilege₧
¢EQUAL₧, ¢EQ ÜEqual to the privilege₧
¢UNEQUAL₧, ¢NE ÜNot equal to the privilege₧
¢AE₧, ¢GE ÜAbove or Equal to the privilege₧
¢BE₧, ¢LE ÜBelow or Equal to the privilege₧
ƒ<Privilege>₧ is
¢Sysop₧, ¢S ÜSysop₧
¢AsstSysop₧, ¢A ÜAssistant Sysop₧
¢Clerk₧, ¢C ÜClerk₧
etc.
ƒ<Action>₧ is
¢SEE ÜSee rest of line if condition met₧
¢SKIP ÜSkip (don't see) rest of line if condition met₧
¢QUIT ÜQuit file if condition met₧
ƒ
Continue ¢[₧Y¢,n]ƒ RYNQXT|
₧UNQ
UQQ
UXQ
UTT
All combinations are legal, ƒOpus/Avatar COMPiler₧ wil combine two or more codes
to get the desired result, if needed. F.ex. the token
Ü[ABOVE AsstSysop QUIT]₧
will be compiled as if you had defined
Ü[ALINE][AXCLUDE][QUIT]₧
ie. (in ƒOpus/Avatar COMPiler₧ tokens) :
Ü[ABOVE AsstSysop SEE][QUIT]₧
or
Ü[AE AsstSysop SEE][EQ AsstSysop SKIP][QUIT]₧
which would be compiled into
Ü^PLA^PXA^OQ₧
ƒ
Continue ¢[₧Y¢,n]ƒ RYNQXT|
₧UNQ
UQQ
UXQ
UTT
As you can see, controlling display with privileges is much easier accomplished
with the ƒOpus/Avatar COMPiler₧.
V00494
Colours in ƒOpus/Avatar COMPiler₧ is a totally new experience. Gone are all the
usual limitations that you have to define both foreground and background
colours when you define colours and the need to redefine the colours after a
temporary change in colours is also gone. You can even turn off blink! This
was previously only available by specifying the colour you had before the
blink.
The new tokens in ƒOpus/Avatar COMPiler₧ that deals with the colours are:
¢[SAVE] ÜSave the colours in a 128-level stack₧
¢[LOAD] ÜRestore the last [SAVE]'d colour₧
¢[FG Colour] ÜChange the foreground colour only₧
¢[BG Colour] ÜChange the background colour only.₧
¢[STEADY] ÜTurn off blink (also available as [BLINK OFF])₧
¢[RESTORE] ÜLike [LOAD] but without emitting any code₧
ƒ
Continue ¢[₧Y¢,n]ƒ RYNQXT|
₧UNQ
UQQ
UXQ
UTT
[SAVE] and [LOAD] can be used in the following construct:
Ü[LightGreen]
.
[SAVE][White on Red][Blink] WARNING [LOAD]
.₧
This will ensure that any text following the WARNING statement will be the same
colour as the one before it. Even if you should decide to alter the colour
before the WARNING, you will not have to alter it two places, as you normally
should if you had only used OECL codes:
Ü[LightGreen]
.
[White on Red][Blink] WARNING [LightGreen]
.₧
Note the second [LightGreen] token needed to restore the colour. If you then
later on wanted to change the colour of the preceeding and following text to
light cyan, you would have to alter the colour code twice.
ƒ
Continue ¢[₧Y¢,n]ƒ RYNQXT|
₧UNQ
UQQ
UXQ
UTT
You can also use the [SAVE] and [LOAD] token in [INCLUDE] files, as I have
done with this .OEC file:
Ü[SAVE][White]
Continue [FG LightCyan][[[FG Yellow]Y[FG LightCyan],n][FG White] [Menu]YN|
[LOAD][Choice]N[Quit]
[Cls]₧
This [INCLUDE] file generates the prompt:
Å
Continue ï[ÄYï,n]Å
₧
and ensures that the colours are unchanged after the completion of the
prompt.
ƒ
Continue ¢[₧Y¢,n]ƒ RYNQXT|
₧UNQ
UQQ
UXQ
UTT
The [FG] and [BG] tokens can be used to only change the foreground and back-
ground colours respectively. You can use it in a construct like this:
Ü
[White on Red] Cyan]
[White on Red] This text is in White [Cyan]
[White on Red] on Red [Cyan]
[White on Red] The word [SAVE][FG Yellow]Next[LOAD] is Yellow [Cyan]
[White on Red] Cyan]₧
E
which produces an output like this:
O ₧
O This text is in White ₧
O on Red ₧
O The word NNextO is Yellow ₧
O ₧
V06114e
which would produce a red box with white characters in it, except the word
Next, which would be Yellow.
ƒ
Continue ¢[₧Y¢,n]ƒ RYNQXT|
₧UNQ
UQQ
UXQ
UTT
One problem with the way ƒOpus/Avatar COMPiler₧ makes these features is that
ALL colour tokens are processed sequentially, including the ones that are
within conditional codes.
This means, than a file containing
Ü
[White on Red]
.
.
[Choice]Y[Cyan][CLS][QUIT]
[FG Yellow]
₧
will have the final [FG] token insert the colour code for Yellow on Black,
as [Cyan] (which is the same as [Cyan on Black]) changes the background
colour, and OACOMP processes this. The solution is to make the file look like
Ü
[White on Red]
.
.
[SAVE][Choice]Y[Cyan][CLS][QUIT][RESTORE]
[FG Yellow]
₧ƒ
Continue ¢[₧Y¢,n]ƒ RYNQXT|
₧UNQ
UQQ
UXQ
UTT
The [BLINK] and [STEADY] tokens can be used, as in:
ÜYou [BLINK]HAD[STEADY] been warned!₧
which produces
You HAD₧ been warned!
EV00494e
With the HAD word blinking.
V00494ƒOpus/Avatar COMPiler₧ has two support programs, ƒOpus/Avatar VIEW₧ and the
ƒOpus/Avatar DECOMPiler₧.
ƒOpus/Avatar VIEW₧ is an ¥OVIEW₧ clone, but with powerful options that allow you
to tell it excactly what privilege level, keys and setup you want to emulate
in that particular invocation. You can also make ƒOpus/Avatar VIEW₧ load a user
from your ÜUSER.DAT₧ file, either by name, by number or (by specifying /USER=RND)
by random.
ƒOpus/Avatar DECOMPiler₧ is an ¥OUNECC₧ clone and will take your .BBS file and
decompile it to an .OEC file. It has switches that allows you to define if the
output file should be ¥OECC₧ compatible or not.
V00494You can obtain a copy of the three programs in several ways:
F.req. it from me (ƒ2:234/10.0₧, Ü2400₧ bps)
Download it from me (¢+45-43710688₧, Area 3)
F.req. it from StarFleet Academy (ƒ1:203/57.0₧, ÜHST 9600₧)
F.req. it from The Migrant BBS (ƒ1:114/7.0₧, Ü2400₧ bps (Ü9600₧ ?))
The names of the files are:
O &₧
O ╒═╦══╕ ₧
O │ NFile nameO ║ KMagic nameO │ ₧
O ╞═╬══╡ ₧
O │ NOAC1??.ZIPO ║ KOACOMPO │ ₧
O │ NOAV1??.ZIPO ║ KOAVIEWO │ ₧
O │ NOAD1??.ZIPO ║ KOADECOMPO │ ₧
O │ NOA?1??.ZIPO ║ KOAPACKAGEO │ ₧
O └─╨──┘ ₧
O &₧
V00494