mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-09-25 19:59:02 +00:00
56d4d4c156
Doing this meant that the escaping functionality got used in three places, so it was extracted into a generalised function in its own module. This is slighly slower for the case where escaped characters are displayed in the same colour as the displayable characters, which happens when listing a directory’s name when recursing. Optimise this, yeah?
28 lines
1.6 KiB
Plaintext
28 lines
1.6 KiB
Plaintext
[36m/testcases/[1;34mfile-names[0m
|
||
[38;5;244m├──[0m ansi: [[31m\u{1b}[0m[34mblue[31m\u{1b}[0m[0m]
|
||
[38;5;244m├──[0m ascii: hello
|
||
[38;5;244m├──[0m backspace: [[31m\u{8}[0m]
|
||
[38;5;244m├──[0m bell: [[31m\u{7}[0m]
|
||
[38;5;244m├──[0m emoji: [🆒]
|
||
[38;5;244m├──[0m escape: [[31m\u{1b}[0m]
|
||
[38;5;244m├──[0m form-feed: [[31m\u{c}[0m]
|
||
[38;5;244m├──[0m invalid-utf8-1: [<5B>]
|
||
[38;5;244m│ └──[0m [31m<Error: path somehow contained a NUL?>[0m
|
||
[38;5;244m├──[0m invalid-utf8-2: [<5B>(]
|
||
[38;5;244m│ └──[0m [31m<Error: path somehow contained a NUL?>[0m
|
||
[38;5;244m├──[0m invalid-utf8-3: [<5B>(]
|
||
[38;5;244m│ └──[0m [31m<Error: path somehow contained a NUL?>[0m
|
||
[38;5;244m├──[0m invalid-utf8-4: [<5B>(<28>(]
|
||
[38;5;244m│ └──[0m [31m<Error: path somehow contained a NUL?>[0m
|
||
[38;5;244m├──[0m [1;34mlinks[0m
|
||
[38;5;244m│ ├──[0m [36manother: [[31m\n[36m][0m [38;5;244m->[0m [36m/testcases/file-names/new-line-dir: [[31m\n[36m]/[0manother: [[31m\n[0m]
|
||
[38;5;244m│ └──[0m [36msubfile[0m [38;5;244m->[0m [36m/testcases/file-names/new-line-dir: [[31m\n[36m]/[0msubfile
|
||
[38;5;244m├──[0m [1;34mnew-line-dir: [[0m[31m\n[1;34m][0m
|
||
[38;5;244m│ ├──[0m another: [[31m\n[0m]
|
||
[38;5;244m│ └──[0m subfile
|
||
[38;5;244m├──[0m new-line: [[31m\n[0m]
|
||
[38;5;244m├──[0m return: [[31m\r[0m]
|
||
[38;5;244m├──[0m tab: [[31m\t[0m]
|
||
[38;5;244m├──[0m utf-8: pâté
|
||
[38;5;244m└──[0m vertical-tab: [[31m\u{b}[0m]
|