OLD | NEW |
---|---|
(Empty) | |
1 #!/usr/bin/env python | |
2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
3 # Use of this source code is governed by a BSD-style license that can be | |
4 # found in the LICENSE file. | |
5 """Writes if the the terminal is likely to understand ANSI codes.""" | |
hans
2015/06/19 21:53:59
ultra nit: Would "Prints whether" be better?
Nico
2015/06/19 22:02:49
Done.
| |
6 | |
7 import os | |
8 | |
9 # Add more terminals here as needed. | |
10 print 'ANSICON' in os.environ | |
OLD | NEW |