logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

libansilove — Library for converting ANSI, ASCII, and other formats to PNG

Authors

libansilove was written by Stefan Vogt, Brian Cassidy, and Frederic Cambus.

Debian                                             May 6, 2023                                    LIBANSILOVE(3)

Description

libansilove  is  a  library to convert ANSi and artscene related file formats into PNG images, supporting
       ANSI (.ANS), PCBoard (.PCB), Binary (.BIN), Artworx (.ADF), iCE Draw (.IDF), Tundra (.TND) and XBin (.XB)
       formats.

       It creates size optimized 4-bit PNG files and supports 80x25 and 80x50 PC fonts (including all the 14 MS-
       DOS charsets), Amiga fonts, and iCE colors.

       All library functions take a context, defined as an ansilove_ctx structure in include/ansilove.h:

       struct ansilove_ctx {
               uint8_t *buffer;
               size_t maplen;
               size_t length;
               struct ansilove_png png;
               uint8_t error;
       };

       Options are passed to the different loaders using the ansilove_options structure in include/ansilove.h:

       struct ansilove_options {
               bool diz;
               bool dos;
               bool icecolors;
               bool truecolor;
               int16_t columns;
               uint8_t font;
               uint8_t bits;
               uint8_t mode;
               uint8_t scale_factor;
       };

Name

       libansilove — Library for converting ANSI, ASCII, and other formats to PNG

See Also