LIBANSILOVE(3)
πΈ hey bestie, welcome to the libansilove(3) manual page π
like, ok, sit down, grab a strawberry drink π, because we're about to talk about the most iconic little library in the artscene.
β¨ NAME β¨
okay so libansilove β a whole library for converting ANSI, ASCII, and other formats into PNG images. yes, literally that. no cap. π
π DESCRIPTION π
so libansilove is a library that converts ANSI and artscene related file formats into PNG images, and the format list is giving range, bestie. it supports:
- ANSI (
.ANS) - PCBoard (
.PCB) - Binary (
.BIN) - Artworx (
.ADF) - iCE Draw (
.IDF) - Tundra (
.TND) - XBin (
.XB)
it creates size optimized 4-bit PNG files π β like, tiny but gorgeous, the way we like it β and it supports 80x25 and 80x50 PC fonts (including all the 14 MS-DOS charsets, yes ALL of them, she's thorough), Amiga fonts, and iCE colors. obsessed honestly. β¨
π«Ά real talk though: every single library function takes a context, defined as anansilove_ctxstructure ininclude/ansilove.h:
struct ansilove_ctx {
uint8_t *buffer;
size_t maplen;
size_t length;
struct ansilove_png png;
uint8_t error;
};
and options get passed to the different loaders using the ansilove_options structure, also 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;
};
like, that's the whole vibe. structs stay structs. π
π AUTHORS π
libansilove was written by Stefan Vogt, Brian Cassidy, and Frederic Cambus. the founding mothers of the function, honestly β legends only, main character energy fr fr. πβ
and that's the page, bestie π¦ this one came from the Debian crew, dated March 22, 2025 β so if you're reading it, that's the version you're holding. slay, bye π π
π¦ where this page comes from
- nixos 26.05: libansilove 1.4.2
- ubuntu resolute: libansilove-dev 1.4.2-2 Β· BSD-2-Clause
- ubuntu stonking: libansilove-dev 1.4.2-2 Β· BSD-2-Clause
- Copyright (c) 2011-2025, Stefan Vogt, Brian Cassidy, and Frederic Cambus
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms