diff options
author | Gabe Black <gabeblack@google.com> | 2017-11-08 19:59:04 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2017-11-10 13:17:29 +0000 |
commit | 49cf9fded08741099d25848807442a89c4d21399 (patch) | |
tree | ddd41029abc62776d470ea83099c8741236754df /site_scons/gem5_scons/util.py | |
parent | 91d942a9da18b77b8a0652bc5f07f2e129b8504e (diff) | |
download | gem5-49cf9fded08741099d25848807442a89c4d21399.tar.xz |
scons: Move Transform and termcap functionality into their own files.
Change-Id: Ica08e93f3873a7eafd02fe7d44c3bdbf0ce7f6b7
Reviewed-on: https://gem5-review.googlesource.com/5565
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'site_scons/gem5_scons/util.py')
-rw-r--r-- | site_scons/gem5_scons/util.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/site_scons/gem5_scons/util.py b/site_scons/gem5_scons/util.py index 4781cc543..1a196c227 100644 --- a/site_scons/gem5_scons/util.py +++ b/site_scons/gem5_scons/util.py @@ -42,6 +42,11 @@ import sys import SCons.Script +import m5.util.terminal + def ignore_style(): """Determine whether we should ignore style checks""" return SCons.Script.GetOption('ignore_style') or not sys.stdin.isatty() + +def get_termcap(): + return m5.util.terminal.get_termcap(SCons.Script.GetOption('use_colors')) |