mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-12-03 08:38:20 +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?
7 lines
576 B
Plaintext
7 lines
576 B
Plaintext
ansi: [[31m\u{1b}[0m[34mblue[31m\u{1b}[0m[0m] form-feed: [[31m\u{c}[0m] [1;34mnew-line-dir: [[0m[31m\n[1;34m][0m
|
||
ascii: hello invalid-utf8-1: [<5B>] new-line: [[31m\n[0m]
|
||
backspace: [[31m\u{8}[0m] invalid-utf8-2: [<5B>(] return: [[31m\r[0m]
|
||
bell: [[31m\u{7}[0m] invalid-utf8-3: [<5B>(] tab: [[31m\t[0m]
|
||
emoji: [🆒] invalid-utf8-4: [<5B>(<28>(] utf-8: pâté
|
||
escape: [[31m\u{1b}[0m] [1;34mlinks[0m vertical-tab: [[31m\u{b}[0m]
|