You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
387 B

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;