AnsiPropertySource

PropertyResolver for AnsiStyle, AnsiColor, AnsiBackground and Ansi8BitColor elements. Supports properties of the form AnsiStyle.BOLD, AnsiColor.RED or AnsiBackground.GREEN. Also supports a prefix of Ansi. which is an aggregation of everything (with background colors prefixed BG_).

ANSI 8-bit color codes can be used with AnsiColor and AnsiBackground. For example, AnsiColor.208 will render orange text. Wikipedia has a complete list of the 8-bit color codes that can be used.

Author

Phillip Webb

Toshiaki Maki

Since

1.3.0

Constructors

Link copied to clipboard
constructor(name: String, encode: Boolean)
Create a new AnsiPropertySource instance.

Functions

Link copied to clipboard
Link copied to clipboard
open fun equals(other: Any): Boolean
Link copied to clipboard
open fun getName(): String
Link copied to clipboard
open fun getProperty(name: String): Any
Link copied to clipboard
open fun getSource(): T
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun named(name: String): PropertySource<out Any>
Link copied to clipboard
open fun toString(): String