From 40ddb23b103eb1d29d2aa0ae3e5bc6633bae9c93 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 28 Mar 2019 19:39:16 -0400 Subject: color: Implement escape sequence parsing GNU ls allows custom escape sequences inside color values, including control characters and embedded NULs. --- tests/test_color_escapes.out | Bin 0 -> 713 bytes tests/test_color_rs_lc_rc_ec.out | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 tests/test_color_escapes.out create mode 100644 tests/test_color_rs_lc_rc_ec.out (limited to 'tests') diff --git a/tests/test_color_escapes.out b/tests/test_color_escapes.out new file mode 100644 index 0000000..9f1c663 Binary files /dev/null and b/tests/test_color_escapes.out 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 -- cgit v1.2.3