Skip to content

Commit

Permalink
Skipping 'Set mode' and 'Reset mode' sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
fcambus committed Oct 8, 2012
1 parent 089ef7f commit 9638021
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ansilove/ansilove.c
Expand Up @@ -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)
Expand Down

0 comments on commit 9638021

Please sign in to comment.