ANSI Art

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Sample files)
(Sample files)
 
(30 intermediate revisions by 6 users not shown)
Line 4: Line 4:
 
|extensions={{ext|ans}}, others
 
|extensions={{ext|ans}}, others
 
}}
 
}}
'''ANSI Art''' is a variant on [[ASCII Art]] which uses ANSI escape sequences in addition to ASCII characters in order to do things like changing colors. It also uses characters from the [[MS-DOS encodings|IBM PC code page]] which aren't part of ASCII, allowing a wider range of characters including various graphical symbols and box-drawing characters. This sort of art was popular on bulletin board systems in the late 1980s and early 1990s, and in other communities through the early 2000s. It is still being made in small quantities today.
+
'''ANSI Art''' is a variant on [[ASCII Art]] which uses [[ANSI escape code|ANSI escape sequences]] in addition to ASCII characters in order to do things like changing colors. It also uses characters from the [[MS-DOS encodings|IBM PC code page]] which aren't part of ASCII, allowing a wider range of characters including various graphical symbols and box-drawing characters. This sort of art was popular on bulletin board systems in the late 1980s and early 1990s, and in other communities through the early 2000s. It is still being made in small quantities today.
  
 
== Disambiguation ==
 
== Disambiguation ==
This article is mainly about the ANSI Art ''file format''. The term "ANSI Art" sometimes refers to the file format, and sometimes to the artwork itself. In the second sense, "ANSI Art" graphics might be stored in a file format other than ANSI Art format, such as [[BIN (Binary Text)|BIN]] or [[iCEDraw]].
+
The term "ANSI Art" sometimes refers to the file format (text with ANSI control sequences), and sometimes to the artwork itself. In the latter sense, "ANSI Art" graphics might be stored in a file format other than ANSI Art format, such as [[BIN (Binary Text)|BIN]] or [[iCEDraw]].
 +
 
 +
== Format details ==
 +
As far as we know, there is no formal specification of ANSI Art format. It has many variants and extensions, and there is usually no easy way to tell what variant you are dealing with.
 +
 
 +
In general, it consists of plain text interspersed with [[ANSI escape code|ANSI escape sequences]]. There may be [[SAUCE]] data at the end of the file. The text is usually (at least for English language artwork) encoded in [[CP437]]. The characters in the PC BIOS font at code points 1 through 31 are allowed, with some exceptions that are treated as [[C0 controls]] instead: 9 (tab), 10 (LF), 13 (CR), 26 (end of data), 27 (ESC). In the DOS world the behavior implemented in ansi.sys became the de facto standard. This includes some oddities, such as that clear screen also moves the cursor to the upper left corner (most implementations leaves the cursor in place). This is probably also the reason that code points below 32 are considered valid, since they are typed that way in DOS with ansi.sys loaded.
 +
 
 +
Older ANSI Art files sometimes begin with a "preamble" consisting of Email/Usenet headers, or other plain text metadata or comments. The preamble will be immediately erased by the ANSI codes, so it is invisible when the file is viewed in a normal way.
  
 
== Specifications and references ==
 
== Specifications and references ==
* [http://www.textfiles.com/programming/FORMATS/ansix364.txt ANSI control sequences]
+
For information about the escape codes used in ANSI Art files, see [[ANSI escape code#Specifications]]. Only documents with information specific to ANSI Art are listed here.
* [http://www.textfiles.com/programming/FORMATS/ansicodes.pro ANSI code list]
+
 
* [[Wikipedia:ANSI escape code|ANSI escape code (Wikipedia)]]
+
* [https://github.com/bbsninja/piece/blob/master/docs/format/ansi.txt piece: docs/format/ansi.txt]
* [http://www.ecma-international.org/publications/standards/Ecma-048.htm EMCA-48]: Control Functions for Coded Character Sets
+
* [http://picoe.ca/2014/03/07/24-bit-ansi/ 24-bit Ansi]
 +
* [http://snisurset.net/code/abydos/ansi.html abydos information about ANSI graphics]
  
 
== Software ==
 
== Software ==
* [http://ansilove.sourceforge.net/ Ansilove]: Open-source PHP-based tools to convert ANSI and similar formats to [[PNG]] images
+
* [https://www.ansilove.org/ Ansilove]: Open-source tools to convert ANSI art and similar formats to [[PNG]] images
* [https://github.com/ansilove/AnsiLove-C AnsiLove/C]
+
* [https://sourceforge.net/projects/acidview6-win32/ ACiD View]: ANSI art (and other format) viewer for Windows
* [http://sourceforge.net/projects/acidview6-win32/ ACiD View]: ANSI art (and other format) viewer for Windows
+
 
* [[FFmpeg]]
 
* [[FFmpeg]]
 +
* [http://picoe.ca/products/pablodraw/ PabloDraw]
 +
* [http://www.andyh.org/moebius/ Moebius]
 +
* [https://github.com/tehmaze/piece piece]
 +
* [[Wikipedia:TheDraw|TheDraw (Wikipedia)]]
  
 
== Sample files ==
 
== Sample files ==
* [http://sixteencolors.net/ Sixteen Colors]
+
* https://16colo.rs/
** [http://sixteencolors.net/pack Sixteen Colors Artpack Archive]
+
* [https://github.com/sixteencolors/sixteencolors-archive Sixteen Colors Archive at GitHub]
** [https://github.com/sixteencolors/sixteencolors-archive Sixteen Colors Archive at GitHub]
+
 
* [http://artscene.textfiles.com/ansi/ TEXTFILES: The ANSI Art Collection]
 
* [http://artscene.textfiles.com/ansi/ TEXTFILES: The ANSI Art Collection]
 
* http://cd.textfiles.com/darkdomain/artpacks/
 
* http://cd.textfiles.com/darkdomain/artpacks/
 
* [http://bbs.ninja/ BBS Ninja]
 
* [http://bbs.ninja/ BBS Ninja]
 +
* [https://artpacks.org/ Artpacks.org]
 +
* {{DexvertSamples|image/ans}}
 +
* {{HTTPS|:|/|/|archive.org/download/pain_cave_bbs_compilation/pain_cave_bbs.zip/pain_cave_bbs%2FBbsback%2F8%2FCNDRAW1.ZIP|CNDRAW1.ZIP}} → PAINCAVE.ANS
 +
* {{HTTPS|:|/|/|archive.org/download/pain_cave_bbs_compilation/pain_cave_bbs.zip|The Pain Cave BBS File Section}}, contains some *.ANS files
  
 
== See also ==
 
== See also ==
 +
* [[ANSI escape code]]
 +
* [[ANSIMation]]
 +
* [[AN2]]
 +
* [[ArtWorx Data Format]]
 
* [[BIN (Binary Text)]]
 
* [[BIN (Binary Text)]]
* [[XBIN]]
+
* [[ComAnsi]]
 
* [[iCEDraw]]
 
* [[iCEDraw]]
* [[ArtWorx Data Format]]
 
 
* [[SAUCE]]
 
* [[SAUCE]]
 +
* [[sMAUG ANSI Executable]]
 +
* [[TheDraw font]]
 +
* [[TheDraw Save File]]
 +
* [[XBIN]]
  
 
== Links ==
 
== Links ==
Line 41: Line 62:
 
* [https://www.youtube.com/watch?v=6zpUb3mUExA Blocktronics ACiD Trip (2013)] (video of really huge ANSI art)
 
* [https://www.youtube.com/watch?v=6zpUb3mUExA Blocktronics ACiD Trip (2013)] (video of really huge ANSI art)
 
* [https://www.youtube.com/watch?v=Zl9yejh92tc BBS: The Documentary Part 5 - Artscene] (video)
 
* [https://www.youtube.com/watch?v=Zl9yejh92tc BBS: The Documentary Part 5 - Artscene] (video)
* [http://nyancat.dakko.us/ Nyan Cat in telnet-accessible ANSI animation]
 
 
* [http://breakintochat.com/blog/2013/09/20/birthday-screens-using-gif-ansi-converters/ Birthday screens using GIF -> ANSI converters]
 
* [http://breakintochat.com/blog/2013/09/20/birthday-screens-using-gif-ansi-converters/ Birthday screens using GIF -> ANSI converters]
 +
 +
[[Category:Bulletin board systems]]
 +
[[Category:File formats with too many extensions]]

Latest revision as of 14:05, 22 August 2024

File Format
Name ANSI Art
Ontology
Extension(s) .ans, others

ANSI Art is a variant on ASCII Art which uses ANSI escape sequences in addition to ASCII characters in order to do things like changing colors. It also uses characters from the IBM PC code page which aren't part of ASCII, allowing a wider range of characters including various graphical symbols and box-drawing characters. This sort of art was popular on bulletin board systems in the late 1980s and early 1990s, and in other communities through the early 2000s. It is still being made in small quantities today.

Contents

[edit] Disambiguation

The term "ANSI Art" sometimes refers to the file format (text with ANSI control sequences), and sometimes to the artwork itself. In the latter sense, "ANSI Art" graphics might be stored in a file format other than ANSI Art format, such as BIN or iCEDraw.

[edit] Format details

As far as we know, there is no formal specification of ANSI Art format. It has many variants and extensions, and there is usually no easy way to tell what variant you are dealing with.

In general, it consists of plain text interspersed with ANSI escape sequences. There may be SAUCE data at the end of the file. The text is usually (at least for English language artwork) encoded in CP437. The characters in the PC BIOS font at code points 1 through 31 are allowed, with some exceptions that are treated as C0 controls instead: 9 (tab), 10 (LF), 13 (CR), 26 (end of data), 27 (ESC). In the DOS world the behavior implemented in ansi.sys became the de facto standard. This includes some oddities, such as that clear screen also moves the cursor to the upper left corner (most implementations leaves the cursor in place). This is probably also the reason that code points below 32 are considered valid, since they are typed that way in DOS with ansi.sys loaded.

Older ANSI Art files sometimes begin with a "preamble" consisting of Email/Usenet headers, or other plain text metadata or comments. The preamble will be immediately erased by the ANSI codes, so it is invisible when the file is viewed in a normal way.

[edit] Specifications and references

For information about the escape codes used in ANSI Art files, see ANSI escape code#Specifications. Only documents with information specific to ANSI Art are listed here.

[edit] Software

[edit] Sample files

[edit] See also

[edit] Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox