Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Skipping 'Set mode' and 'Reset mode' sequences

  • Loading branch information...
commit 9638021491374593abb304d915d2e052ef58389e 1 parent 089ef7f
@fcambus fcambus authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 ansilove/ansilove.c
View
7 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)
Please sign in to comment.
Something went wrong with that request. Please try again.