home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. CD ROM (Annual Premium Edition)
/
premium.zip
/
premium
/
DOSGRAPH
/
ANSBLK10.ZIP
/
ANSIBLK.DOC
next >
Wrap
Text File
|
1993-02-17
|
9KB
|
169 lines
┌─────────╖ ┌─────────╖
│ ║ │ ║
│ ║ │ ║
│ ┌──╫───┼──┐ ║
╘══════╪══╝ ╘══╪══════╝
│ │
┌──────├──╖ ┌──┼──────╖
│ └──╫───┼──┘ ║
│ ║ │ ║
│ ║ │ ║
╘═════════╝ ╘═════════╝
ANSIBlk, Ver. 1.0, (c) 1993
EFD Systems, All Rights Reserved
304 Smokerise Circle
Marietta, GA 30067
CompuServe: 72627,3026
───────────────────────────────────────────────────────────────────────────────
DESCRIPTION
ANSIBlk (short for ANSI BLOCK) is a rudimentary program for producing colorized
text mode display screens, commonly referred to as ANSI graphics. ANSIBlk will
work with screens up to 80 cols by 25 rows; however, it was specifically
designed to work equally well with smaller partial screen images or blocks. In
addition to reading binary format screen files, ANSIBlk can import character
data from standard ASCII files. Data can only be saved on disk as a binary
display memory image with a 2 byte header (block width and height). Storage of
ESC code sequences, as required by ANSI.SYS, is not supported. By reading and
writing directly to screen memory, ANSIBlk provides complete control over
character display attributes without requiring the use of the ANSI.SYS screen
driver. Obviously, a color monitor is required; otherwise, there is no reason
to use ANSIBlk. ANSIBlk was developed for use in programming applications;
however, the provided DSPLYBLK utility allows blocks to be displayed from the
command line and from batch files at any given screen location.
Other ANSI graphics software commonly available provides similiar or even more
extensive capabilities; however, these were all unacceptable to me for one
reason or another. Many will not work well with partial screen images. For
example, some will allow a partial screen block to be easily saved but not so
easily re-loaded. Others are simply too complex, in my opinion, for occasional
users. Hence, ANSIBlk was born.
───────────────────────────────────────────────────────────────────────────────
USING ANSIBlk
To use ANSIBlk type: ANSIBlk filename [/A]
where: "filename" is a valid DOS file name. A .BIN extension is
assumed unless otherwise specified. The file is created
if it does not exist.
"/A" is used only for importing ASCII text. Only the
first 80 columns X 25 lines of the file are imported. A
binary file format is assumed unless otherwise specified.
ANSIBlk provides limited editing capability. Existing display characters can be
either painted (colorized) with selected foreground and background colors or
they may be overwritten with new characters. A full set of block functions
(PAINT, CUT, COPY, and PASTE) are provided for working with rectangular screen
regions. A box drawing mode is also provided. If more extensive editing
capability is required, you should consider creating the screen using an ASCII
editor and then import the ASCII screen into ANSIBlk for colorization.
All displayable character input from the keyboard is interpreted literally for
screen display. For example, pressing ENTER simply displays an ASCII character
13 at the current cursor location in the currently selected colors.
───────────────────────────────────────────────────────────────────────────────
PAINTING
The color of existing screen characters can be altered by "painting" with a
virtual pen or brush. Painting is a 3 step process:
1) select the desired foreground (F2) and background (F3) colors then;
2) place the pen in the DOWN position using Page Down and;
3) move the cursor using the Arrow keys. Every screen position touched by the
cursor while the pen is DOWN will have both it's foreground and background
colors changed to the current color settings.
Page Up and Page Down are used to control the Pen position. Pen DOWN is
indicated on-screen by an asterisk in the lower left corner. With the Pen UP,
the arrows keys simply move the cursor without painting.
To erase with the Pen, set both foreground and background colors to zero (0).
Character input from the keyboard is displayed without regard to the current
Pen position.
───────────────────────────────────────────────────────────────────────────────
BOX DRAWING
F4 toggles the box drawing ON and OFF and allows the user to select one of four
different drawing modes. With box drawing on, the keys on the numeric keypad
are re-defined in a convenient geometric pattern, as shown below, to facilitate
easy drawing of boxes. UP, DN, L and R indicates the cursor direction for keys
which move the cursor in addition to drawing the character shown.
SINGLE DOUBLE DOUBLE TOP DOUBLE SIDE
┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐
│7 ┌│8 ┬│9 ┐│ - │ │7 ╔│8 ╦│9 ╗│ - │ │7 ╒│8 ╤│9 ╕│ - │ │7 ╓│8 ╥│9 ╖│ - │
├───┼───┼───┤UP││ ├───┼───┼───┤UP║│ ├───┼───┼───┤UP││ ├───┼───┼───┤UP║│
│4 ├│5 ┼│6 ┤│ │ │4 ╠│5 ╬│6 ╣│ │ │4 ╞│5 ╪│6 ╡│ │ │4 ╟│5 ╫│6 ╢│ │
├───┼───┼───┼───┤ ├───┼───┼───┼───┤ ├───┼───┼───┼───┤ ├───┼───┼───┼───┤
│1 └│2 ┴│3 ┘│ + │ │1 ╚│2 ╩│3 ╝│ + │ │1 ╘│2 ╧│3 ╛│ + │ │1 ╙│2 ╨│3 ╜│ + │
├───┴───┼───┤DN││ ├───┴───┼───┤DN║│ ├───┴───┼───┤DN││ ├───┴───┼───┤DN║│
│ 0 L ─ │.R─│ │ │ 0 L ═ │.R═│ │ │ 0 L ═ │.R═│ │ │ 0 L ─ │.R─│ │
└───────┴───┴───┘ └───────┴───┴───┘ └───────┴───┴───┘ └───────┴───┴───┘
───────────────────────────────────────────────────────────────────────────────
BLOCK OPERATIONS
ALT-B selects the block function sub-menu. Available block functions are PAINT,
CUT, COPY and PASTE. After selecting a function, the user is prompted to
indicate the desired rectangular screen block to be operated on by moving the
cursor first to the upper-left corner of the block and then to the lower-right
corner of the block. ESC will cancel the block function at any time.
The Pen is automatically placed in the UP position at the start of a block
function.
SAVE is also a block function, although it is not part of the block sub-menu.
The block marking procedure described above is followed to indicate the screen
area to be saved.
───────────────────────────────────────────────────────────────────────────────
LICENSE AGREEMENT and DISCLAIMER
This software and the included documentation is provided solely "as is". The
author hereby disclaims any and all warranties, either expressed or implied,
including without limitation the warranties of merchantability and fitness of
purpose. In no event will the author be liable for any damages, incidential,
consequential or otherwise, resulting from the use or mis-use of this software.
In any event, the author's liability shall be limited to the originial software
license purchase price.
ANSIBlk ver. 1.0 is provided for private personal use without payment of a
license fee; however, ANSIBlk is not public domain software. Legal ownership
and all other legals rights pertaining to the software are reserved and retained
by the author. Later versions of the software may or may not enjoy similiar
status. The software may be freely distributed provided that no fee of any kind
is charged in connection with such distribution. The only exception is
electronic phone service connection fees. This software may not be distributed
in connection with or incorporated into any software or other product being
distributed, demonstrated, sold or offered for sale without the expressed
written permission of the author. Anyone wishing to obtain such permission may
contact the author at the address listed at the front of this documentation.
Comments, suggestions and criticisms are always welcomed.