IReadOnlyCapabilities Interface
Represents (read-only) console capabilities.
public interface IReadOnlyCapabilities
- Namespace
- Spectre
.Console - Implementing Types
Properties
- abstract bool Ansi
- Gets a value indicating whether or not the console supports VT/ANSI control codes.
- abstract ColorSystem ColorSystem
- Gets the color system.
- abstract bool Interactive
- Gets a value indicating whether or not the console supports interaction.
- abstract bool IsTerminal
- Gets a value indicating whether or not console output has been redirected.
- abstract bool Legacy
- Gets a value indicating whether or not this is a legacy console (cmd.exe) on an OS prior to Windows 10.
- abstract bool Links
- Gets a value indicating whether or not the console support links.
- abstract bool Unicode
- Gets a value indicating whether or not the console supports Unicode.
Extension Methods
-
T And
< I Read Only Capabilities> (Action < I Read Only Capabilities> ) - Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.