Re: [PATCH] nft-test: don't use colors if output is not a tty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>+    if sys.stdout.isatty():
>+        HEADER = '\033[95m'
>+        GREEN = '\033[92m'
>+        YELLOW = '\033[93m'
>+        RED = '\033[91m'
>+        ENDC = '\033[0m'

Where did the values 91, 92, 93, 95 actually come from? They are 
nonstandard and, apparently, are a carry-over for AIX compatibility.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux