ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 9f9d64c5a36705075156ff20d6a92d7771ee711f
parent 7fa4c8b79e57fa9af07fe1da0bddcd8a79ce8f7c
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 17 Feb 2020 11:20:54 +0100

Document the new -t flag (type), allowing to specify input file type.

Diffstat:
MREADME.md | 4+++-
Mansilove.1 | 23++++++++++++++++++++++-
Msrc/ansilove.c | 2+-
3 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -133,7 +133,7 @@ Even more: ``` ansilove [-dhiqrsv] [-b bits] [-c columns] [-f font] [-m mode] [-o file] - [-R factor] file + [-R factor] [-t type] file ``` ## Options @@ -170,6 +170,8 @@ Even more: -R factor Create Retina output file with custom scale factor. + -t type Specify input file type. + -s Show SAUCE record without generating output. -v Show version information. diff --git a/ansilove.1 b/ansilove.1 @@ -24,7 +24,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: January 17 2020 $ +.Dd $Mdocdate: February 17 2020 $ .Dt ANSILOVE 1 .Os .Sh NAME @@ -39,6 +39,7 @@ .Op Fl m Ar mode .Op Fl o Ar file .Op Fl R Ar factor +.Op Fl t Ar type .Ar file .Sh DESCRIPTION .Nm @@ -141,6 +142,26 @@ Suppress output messages (quiet). Create Retina @2x output file. .It Fl R Ar factor Create Retina output file with custom scale factor. +.It Fl t Ar type +Specify input file type. +.Pp +Valid types are: +.Bl -tag -width Ds +.It Ic ans +ANSi (ANSI escape sequences: ANSI X3.64 standard) +.It Ic adf +Artworx format, supporting custom character sets and palettes +.It Ic bin +Binary format (raw memory copy of text mode video memory) +.It Ic idf +iCE Draw format, supporting custom character sets and palettes +.It Ic pcb +PCBoard Bulletin Board System (BBS) own file format +.It Ic tnd +TundraDraw format, supporting 24-bit color mode +.It Ic xb +XBin format, supporting custom character sets and palettes +.El .It Fl s Show SAUCE record without generating output. .It Fl v diff --git a/src/ansilove.c b/src/ansilove.c @@ -46,7 +46,7 @@ synopsis(void) fprintf(stdout, "SYNOPSIS\n" " ansilove [-dhiqrsv] [-b bits] [-c columns] [-f font]" " [-m mode] [-o file]\n" - " [-R factor] file\n"); + " [-R factor] [-t type] file\n"); } static void