(disabled) ls dir now red not dark blue on black
authorDavid Fries <David@Fries.net>
Mon, 26 Dec 2011 22:54:40 +0000 (16:54 -0600)
committerDavid Fries <David@Fries.net>
Sat, 30 Jun 2012 03:12:32 +0000 (22:12 -0500)
Disabled to avoid changing the default and blue on white works.

debian/patches/ls_color_red.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/ls_color_red.patch b/debian/patches/ls_color_red.patch
new file mode 100644 (file)
index 0000000..d5d4e68
--- /dev/null
@@ -0,0 +1,11 @@
+--- busybox-1.19.3.orig/coreutils/ls.c
++++ busybox-1.19.3/coreutils/ls.c
+@@ -395,7 +395,7 @@
+ */
+ #define COLOR(mode) ( \
+       /*un  fi  chr  -  dir  -  blk  -  file -  link -  sock -   -  exe */ \
+-      "\037\043\043\045\042\045\043\043\000\045\044\045\043\045\045\040" \
++      "\037\043\043\045\037\045\043\043\000\045\044\045\043\045\045\040" \
+       [TYPEINDEX(mode)])
+ /* Select normal (0) [actually "reset all"] or bold (1)
+  * (other attributes are 2:dim 4:underline 5:blink 7:reverse,
index 3a98367..e3823d0 100644 (file)
@@ -26,6 +26,11 @@ hotfixes/busybox-1.20.1-mke2fs.patch
 hotfixes/busybox-1.20.1-ps.patch
 hotfixes/busybox-1.20.1-tar.patch
 
+# Dark blue on black is nearly impossible to read, use red.
+# Leaving this commented out as dark blue on white is fine, and there isn't any
+# way to know which case it is.
+#ls_color_red.patch
+
 #Patched pulled from busybox git
 patches-backports/0001-backport-vi-save-restore-screen-upon-invocation.patch