Parse Terminal Ansi Sequences correctly (e.g. including foreground and background color)