Commit 4bb27d7
committed
added CSI (\x9b) as additionally allowable escape
Added `\x9b` as an additionally allowable ANSI escape code. It's pretty phased out, but can still be used.
The difference between the two is that `\x1b` requires a following `[`. Together, both of those characters combined form the CSI. There is the single character alternative, `\x9b`, that doesn't require the `[`. It is less common, I speculate, because faulty ANSI implementations will output `[37;1m` which is more distinct than just `37;1m` - don't quote me on that though. All I know is that it has to do with [C0 and C1 control codes](https://en.wikipedia.org/wiki/C0_and_C1_control_codes) and a bunch of unicode voodoo.
I doubt many terminal emulators even support it nowadays but it *is* something you should probably be checking for.1 parent 5c77031 commit 4bb27d7
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
976 | | - | |
977 | | - | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
978 | 979 | | |
979 | 980 | | |
980 | 981 | | |
| |||
994 | 995 | | |
995 | 996 | | |
996 | 997 | | |
997 | | - | |
| 998 | + | |
998 | 999 | | |
999 | 1000 | | |
1000 | 1001 | | |
1001 | | - | |
| 1002 | + | |
1002 | 1003 | | |
1003 | 1004 | | |
1004 | 1005 | | |
| |||
1219 | 1220 | | |
1220 | 1221 | | |
1221 | 1222 | | |
1222 | | - | |
| 1223 | + | |
1223 | 1224 | | |
1224 | 1225 | | |
1225 | 1226 | | |
| |||
0 commit comments