libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit 64a02cf4edeb4ca0cd6a3c6ae290b9d77b18b656
parent c90c31fabcb7a60afbcb411b8a475d3497fc42ed
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri, 29 Jun 2018 21:12:28 +0200

Add code to skip PabloDraw 24-bit ANSI sequences

Diffstat:
Msrc/loaders/ansi.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -366,6 +366,13 @@ void ansi(struct input *inputFile, struct output *outputFile) loop += ansi_sequence_loop+2; break; } + + // skipping PabloDraw 24-bit ANSI sequences + if (ansi_sequence_character == 't') + { + loop += ansi_sequence_loop+2; + break; + } } } else if (current_character != 10 && current_character != 13 && current_character != 9)