Open sandboxFocus

Interface IConsoleTheme

Exposes the semantics of a console color theme. A simple implementation is provided by the ConsoleTheme class, and ready-made themes are exposed on the ConsoleThemes class.

Namespace: PostSharp.Patterns.Diagnostics.Backends.Console
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public interface IConsoleTheme

Properties

Name Description
SupportsAnsiCodes

Determines whether the theme supports VT escape codes.

SupportsThemeItems

Determines whether the theme supports differentiating the style according to the ConsoleThemeItem.

Methods

Name Description
GetStyle(string, LogLevel, LogRecordKind, ConsoleThemeItem)

Gets the ConsoleThemeStyle for a specific theme item.