home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d8xx
/
d855
/
banner.lha
/
Banner
/
banner.doc
< prev
next >
Wrap
Text File
|
1993-02-02
|
7KB
|
168 lines
NAME
banner - render a banner from a string
VERSION
$VER: banner.c,v 1.4 93/01/30 00:59:37 tf Exp
SYNPOSIS
banner [options] string
DESCRIPTION
BANNER is a smart character rendering utility for - surprise -
banners. It can only be used from within the command line of a
CLI or a SHELL. By default BANNER will print your string into the
SHELL using an internal font which contains the ASCII characters
from 32 (space) to 126 (overscore). If you don't like them you
can also tell BANNER to render the characters out of any other font
that is accessable via the diskfont.library.
Legal BANNER options are:
STRING This option forces the next argument to be a string
which BANNER should print. You'll only need to force
this if your string is equal to one of BANNER's option
keywords.
RENDER If you don't want BANNER to use it's internal font you
should add this keyword to your command line. BANNER
will then render each character of the input string
using the amiga standard font: topaz.font size 8.
By default BANNER will print the currently rendered
character for each set pixel in it's bitmap, i.e. an 'A'
will be BANNER'ed using 'A' characters, a 'B' using B's
etc. See SET/UNSET to change this.
NORENDER This option forces BANNER to use the internal font
table. This is the default.
FONT The FONT or '-f' option allows you to specify the name
of the font which banner should use for rendering.
The default font name is "topaz.font" a trailing
".font" is optional. To specify the font style see
UNDERLINED,ITALIC and BOLD further down; the
SIZE or '-s' option allows you to specify the font size.
The argument should be numerical, the maximum size is
4294967295. (This is the maximum for BANNER, your
chip memory may offer less... ;)
The default size is 8.
NORMAL This switch sets the font style to normal. This is
set by default. Specifying NORMAL forces banner to
ignore all previously made font style settings, i.e.
one or more of the following three:
UNDERLINED These keywords tell banner which falgs to set when
BOLD opening your font. BANNER's behaviour in case of
ITALIC a non-existant font style depends on the version of
your operating system and the specified font.
SET If you don't like BANNER to render each character in your
string with different characters you can set one common
character for all SET raster dots in the font's bitmap.
Note: You should always define a common SET character if
you want BANNER to render from italic fonts! This
is because BANNER often has problems finding the
borders of overlapping characters.
UNSET This option allows you to specify the character printed
for UNSET raster dots in your font's bitmap.
ASPECT If your banner gets wider than your printer's tractor
you can rotate the output by typing ASPECT Y.
The default is ASPECT X.
SMART tells BANNER to render the SET character by evaluating the
3x3 context of each set pixel.
EXAMPLES
Print the string 'banner' using the internal font
1> banner banner
will result in the following output
__
/ /
/ /___ ______ ______ ______ ______ _____
/ __ // __ // __ // __ // ____// .__/
/ /_/ // __ // / / // / / // __/_ / /
/_____//_/ /_//_/ /_//_/ /_//_____//_/
Rendering 'banner' from topaz.font 8
1> banner render banner
bbb
bb
bb bb aaaa nnnnn nnnnn eeee rrr rr
bbb bb aa nn nn nn nn ee ee rrr rr
bb bb aaaa nn nn nn nn eeeeee rr rr
bb bb aa aa nn nn nn nn ee rr
bbbb aaa aa nn nn nn nn eeee rrrr
Rendering from the new topaz.font (Kick 2.0+) using an asterisk '*' for
set pixels and a period '.' for unset pixels
1> banner render font topaz.font size 8 set * unset . string banner
.**.............................................
.**.............................................
.*****....****...*****...*****....****...*****..
.**..**......**..**..**..**..**..**..**..**..**.
.**..**...*****..**..**..**..**..******..**.....
.**..**..**..**..**..**..**..**..**......**.....
.*****....*****..**..**..**..**...****...**.....
................................................
You may also pipe or redirect a file into banner.
Note that you *MUST* specify RENDER or NORENDER in this case:
1> banner render < foo:foobar
renders the contents of the file "foo:foobar" to your CLI/SHELL.
1> dir | banner norender >prt:
prints the contents of your current directory using BANNER's
internal font.
That's it, have fun
-Tobi
AUTHOR
This Shareware was written by Tobias Ferber, Baden-Baden, Germany.
If you want to contact me, please write to:
Tobias Ferber
Bismarckstraße 22
D-7570 Baden-Baden
Germany
EMail: Earn: ukjg@dkauni2.bitnet
X.400: ukjg@ibm3090.rz.uni-karlsruhe.dbp.de
InterNet: ukjg@ibm3090.rz.uni-karlsruhe.de
THANKS
BANNER was written in C using DICE by Matthew Dillon.
DICE is copyright (c)1990 by Matthew Dillon
891 Regal Rd.
Berkeley, Ca. 94708
USA
dillon@overload.Berkeley.CA.US
uunet.uu.net!overload!dillon
BIX: mdillon