Permalink
Browse files

Skipping 'Set mode' and 'Reset mode' sequences

  • Loading branch information...
1 parent 089ef7f commit 9638021491374593abb304d915d2e052ef58389e @fcambus fcambus committed Oct 8, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 ansilove/ansilove.c
View
@@ -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)

0 comments on commit 9638021

Please sign in to comment.