diff options
author | Daniel Dunbar <daniel@zuster.org> | 2012-07-20 18:29:38 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2012-07-20 18:29:38 +0000 |
commit | 7d83658140cb99871a43a08715a45c84aa66f3cc (patch) | |
tree | 1dc801549e135220329cef898daf42221fde5bdf /include/llvm/Support/Process.h | |
parent | b1a464279623768a3d04ff6726c99dce35d2f360 (diff) |
Process: Add sys::Process::FileDescriptorHasColors().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160557 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Process.h')
-rw-r--r-- | include/llvm/Support/Process.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/Process.h b/include/llvm/Support/Process.h index 91b92788f2..088897c903 100644 --- a/include/llvm/Support/Process.h +++ b/include/llvm/Support/Process.h @@ -97,6 +97,10 @@ namespace sys { /// the user rather than being put on a pipe or stored in a file. static bool FileDescriptorIsDisplayed(int fd); + /// This function determines if the given file descriptor is displayd and + /// supports colors. + static bool FileDescriptorHasColors(int fd); + /// This function determines the number of columns in the window /// if standard output is connected to a "tty" or "console" /// window. If standard output is not connected to a tty or |