termux-packages/root-packages/chroot/src-ls.c.patch

14 lines
387 B
Diff
Raw Normal View History

diff -u -r ../coreutils-8.26/src/ls.c ./src/ls.c
--- ../coreutils-8.26/src/ls.c 2016-11-22 15:04:32.000000000 -0500
+++ ./src/ls.c 2016-11-30 20:27:28.910732105 -0500
@@ -1749,6 +1749,9 @@
}
}
+ /* Termux patch: Default to colors if terminal. The --color option may override this. */
+ print_with_color = isatty(STDOUT_FILENO);
+
while (true)
{
int oi = -1;