Horizon
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Catch::IStream Class Referenceabstract

Public Member Functions

virtual std::ostream & stream ()=0
 
virtual bool isConsole () const
 Best guess on whether the instance is writing to a console (e.g.
 

Member Function Documentation

◆ isConsole()

virtual bool Catch::IStream::isConsole ( ) const
inlinevirtual

Best guess on whether the instance is writing to a console (e.g.

via stdout/stderr)

This is useful for e.g. Win32 colour support, because the Win32 API manipulates console directly, unlike POSIX escape codes, that can be written anywhere.

Due to variety of ways to change where the stdout/stderr is actually being written, users should always assume that the answer might be wrong.


The documentation for this class was generated from the following files: