selftests/futex: Check ANSI terminal color support
[cascardo/linux.git] / tools / testing / selftests / futex / functional / run.sh
index e87dbe2..7ff002e 100755 (executable)
@@ -24,7 +24,7 @@
 
 # Test for a color capable console
 if [ -z "$USE_COLOR" ]; then
-    tput setf 7
+    tput setf 7 || tput setaf 7
     if [ $? -eq 0 ]; then
         USE_COLOR=1
         tput sgr0