summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-03-28 19:39:16 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-03-28 19:40:02 -0400
commit40ddb23b103eb1d29d2aa0ae3e5bc6633bae9c93 (patch)
tree577223fd5644fb69ad176b54df0d8a3887be2c4e /tests
parent1d2bdf995af658209f5fb63fc42c825411d8da9e (diff)
downloadbfs-40ddb23b103eb1d29d2aa0ae3e5bc6633bae9c93.tar.xz
color: Implement escape sequence parsing
GNU ls allows custom escape sequences inside color values, including control characters and embedded NULs.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_color_escapes.outbin0 -> 713 bytes
-rw-r--r--tests/test_color_rs_lc_rc_ec.out20
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_color_escapes.out b/tests/test_color_escapes.out
new file mode 100644
index 0000000..9f1c663
--- /dev/null
+++ b/tests/test_color_escapes.out
Binary files differ
diff --git a/tests/test_color_rs_lc_rc_ec.out b/tests/test_color_rs_lc_rc_ec.out
new file mode 100644
index 0000000..a71df24
--- /dev/null
+++ b/tests/test_color_rs_lc_rc_ec.out
@@ -0,0 +1,20 @@
+LC01;34RCrainbowEC
+LC01;34RCrainbow/ECLC01;32RCexec.shEC
+LC01;34RCrainbow/ECLC01;35RCsocketEC
+LC01;34RCrainbow/ECLC01;36RCbrokenEC
+LC01;34RCrainbow/ECLC01;36RCchardev_linkEC
+LC01;34RCrainbow/ECLC01;36RClink.txtEC
+LC01;34RCrainbow/ECLC30;42RCsticky_owEC
+LC01;34RCrainbow/ECLC30;43RCsgidEC
+LC01;34RCrainbow/ECLC33RCpipeEC
+LC01;34RCrainbow/ECLC34;42RCowEC
+LC01;34RCrainbow/ECLC37;41RCsugidEC
+LC01;34RCrainbow/ECLC37;41RCsuidEC
+LC01;34RCrainbow/ECLC37;44RCstickyEC
+LC01;34RCrainbow/ECfile.dat
+LC01;34RCrainbow/ECfile.txt
+LC01;34RCrainbow/ECmh1
+LC01;34RCrainbow/ECmh2
+LC01;34RCrainbow/ECstar.gz
+LC01;34RCrainbow/ECstar.tar
+LC01;34RCrainbow/ECstar.tar.gz