Ansi and ASCII - ansi and asci graphics.

Heresy #01
[0m
            ██████████ █████████ ██████████ ██
            █▄▄▄▄▄▄▄██ █ [7C██ █▄▄▄▄▄▄▄▄▄ ██
            █ ██ █ [3C██ [9C██ ██
            █ [7C██ █ [7C██ ██████████ ██
                [8C██ [9C██ [12C██
[0m
                     ┌──╖ ╓──┐ ─┬──╖
                     ┼──╢ ║ ││ │ ║
                     │ ║ ║ ││ │ ║
                     ┘ ╙ ╙ └┘ ─┴──╜

              dHHHHh dHHHHh dHHHHh HHHH HHHH
              H HH H H YH HH Ha
              H"""HH """""h H HH H$
              H HH HH H dH HH Hh
              H HH dHHHHP YHHHHP HHHH HHHH
                  HP


    A translation of a very good article about ascii has appeared in Buzz
graphics. But, in my humble opinion ;), the author allowed
freedom in handling style names. That's what he calls
Ansi graphics work using block graphics. And now
some people, misled, write to themselves as
classes - ansi-gfx ;).
    Since the editors of Buzz took the message about
"unrighteousness" of their interpretation of the definitions of ascii and ansi in
bayonets, then I decided to share what I know about this
controversial issue on the electronic pages of his newspaper.

    There are two distinctly separated styles of text graphics, these are
as you already understood, ascii and ansi.
    Ascii is theoretically divided into:

    1. work using character setbeginning
from CHR$(32) and to CHR$(127). Example:

    s$$$$e
   d$$$$b
   $$$ $$$
   $$$$$$$$
   $$$ $$$
   S$S S$S


    2. work using a set of block graphics
CHR$(176)-CHR$(223), as well as some other symbols. Example:

   ▄██████▄
   ███ ███
   ███ ███
   ███▀▀███
   ███ ███


    3. work using symbols for frames
CHR$(179)-CHR$(218). Example:

   ╔══════╗
   ╟─────┐║
   ║ │║
   ╟─────┤║
   ║ │║
   ╙ └╜


    All these divisions are purely conditional, so you can
draw using all the symbols you want.

    The ANSI format implies the use of the same
character set from ASCII, but you will not be able to view it
in a regular text editor. I haven't seen it on the Spectrum at all
programs that could view ANSI. Basics
the perceived difference from ascii is the use of color, then
Each symbol can have its own color.
    Below, for non-believers, is an example of ansi-gfx as it
shows a regular text editor:
[0m [11C
[1;36m▄█▓▒░░▒▌ [0;35;HRmA [37;40m
[1;36m██▓▒░▒▓▌ [0;35;CHZmN [37;40m
[1;36m█▓▒ [0;35;CHZmP [1;36;40m [0;35;43m' [1;36;40m█
[1;36m▓▒░ [0;35;43m| [1;36;40m [0;35;43m [1;36;40m█
[1;36m▒░ [0;35;ЧЗmP''' [37;40m▓ [1;36m▌ [0;35;43m [37;40m
[1;36m░ [0;35;CHZmP [37;40m [35;43m [37;40m
[35;CHZmP [37;40m
[0m

    As you can see, most of the volume is taken up by teams. Theyconsist: the first byte of the command contains the symbol , chr$(27), a
the second byte is the left square bracket [, chr$(91). Behind these
bytes follow the command parameters, and in conclusion the actual
command code. Command parameters are either numbers (in the form
digital ASCII characters interpreted as decimal
numbers), or strings of ASCII characters enclosed in quotation marks,
for example, "option string". If there are several in a team
parameters, they are separated by a semicolon. The actual code
the command ending the ansi command is always one character
alphabet.

Share your thoughts about the article