ansilove

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

commit 9638021491374593abb304d915d2e052ef58389e
parent 089ef7fab538cb0fa668a0b89c17b569b972baef
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Mon,  8 Oct 2012 11:35:37 +0200

Skipping 'Set mode' and 'Reset mode' sequences

Diffstat:
Mansilove/ansilove.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/ansilove/ansilove.c b/ansilove/ansilove.c @@ -613,6 +613,13 @@ void alAnsiLoader(char *input, char output[], char retinaout[], char font[], cha loop+=ansi_sequence_loop+2; break; } + + // skipping set mode and reset mode sequences + if (ansi_sequence_character == 'h' || ansi_sequence_character == 'l') + { + loop+=ansi_sequence_loop+2; + break; + } } } else if (current_character!=10 && current_character!=13 && current_character!=9)