Commit f9a7bea
committed
bug #35 Handle multiple codes in sequences (jacklul)
This PR was squashed before being merged into the master branch.
Discussion
----------
Handle multiple codes in sequences
This PR adds support for handling multiple sequences of ansi codes - preserving the styling until reset code is found.
This addresses #17
### Current:

### With this PR:

Like in my other PR, PHPUnit passes once the test class is fixed.
## TODO:
~~ANSI codes 22-29 should disable appropriate styling, currently it will not work because of `in_array` checks on 1-9, might need to remove values directly in `tokenize` or rewrite the styling code into something else
**I have an idea how to approach this, will update on that soon**~~ Done
Commits
-------
de5ed7a Handle style reset sequences
62572d1 Handle multiple codes in sequencesFile tree
2 files changed
+37
-2
lines changed- SensioLabs/AnsiConverter
- Tests
2 files changed
+37
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
118 | 134 | | |
119 | 135 | | |
120 | 136 | | |
| |||
162 | 178 | | |
163 | 179 | | |
164 | 180 | | |
| 181 | + | |
165 | 182 | | |
166 | 183 | | |
167 | 184 | | |
168 | 185 | | |
169 | 186 | | |
170 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
171 | 202 | | |
172 | 203 | | |
| 204 | + | |
173 | 205 | | |
174 | 206 | | |
175 | 207 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
0 commit comments