sambatool: heuristics to decided whether colour is wanted
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 19 Apr 2018 02:15:25 +0000 (14:15 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 31 May 2018 02:34:52 +0000 (04:34 +0200)
commit8426c428ba2e7cc880392d6cf0e4bae4f603be3f
tree5e0ac45932b946b7981670a011ec661e90dc2699
parente58719d13cbaa16c9fa454d5653b4a7dd6915777
sambatool: heuristics to decided whether colour is wanted

The easy cases are --color=yes and --color=no.

With --color=auto, we use color if it seems we're writing to a TTY.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu May 31 04:34:52 CEST 2018 on sn-devel-144
python/samba/netcmd/__init__.py