Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class BorderType(val head: BorderTypeSection, val headBottom: BorderTypeSection, val body: BorderTypeSection, val bodyBottom: BorderTypeSection, val foot: BorderTypeSection)

Characters to use to draw borders on a table or other box widget.

Link copied to clipboard
class BorderTypeSection(val es: String, val esw: String, val sw: String, val nes: String, val nesw: String, val nsw: String, val ne: String, val new: String, val nw: String, val ew: String, val ns: String, val s: String, val n: String, val w: String, val e: String)

Characters to use for one section of a BorderType

Link copied to clipboard
data class Line(val spans: List<Span>, val endStyle: TextStyle) : List<Span>
Link copied to clipboard
class Lines(val lines: List<Line>)

A lines, where each line is a list of Spans.

Link copied to clipboard

Setting for handling of long words that exceed the line length by themselves.

Link copied to clipboard
class Span

A word or string of whitespace and an associated style.

Link copied to clipboard
Link copied to clipboard

Default text colors that can be used to style text.

Link copied to clipboard
interface TextStyle

Styles that can be applied to text by terminals that support it.

Link copied to clipboard

Default text style that can be applied to text.

Link copied to clipboard
sealed class Theme
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Settings for handling of whitespace and line wrapping.

Link copied to clipboard
interface Widget
Link copied to clipboard
data class WidthRange(val min: Int, val max: Int)

Functions

Link copied to clipboard
operator fun Theme.plus(other: Theme): Theme

Create a new theme by replacing or adding entries to this theme from an other theme.

Link copied to clipboard
fun TextStyle(color: Color? = null, bgColor: Color? = null, bold: Boolean? = null, italic: Boolean? = null, underline: Boolean? = null, dim: Boolean? = null, inverse: Boolean? = null, strikethrough: Boolean? = null, hyperlink: String? = null): TextStyle
Link copied to clipboard
fun Theme(from: Theme = Theme.Default, init: ThemeBuilder.() -> Unit): Theme