Skip to content

TermText

[Source]

Use this primitive directly to format strings.

primitive val TermText is
  TerminalTextFormatting ref

Implements


Constructors

create

[Source]

new val create()
: TermText val^

Returns


Public Functions

hide

[Source]

fun box hide(
  value: Stringable val)
: String val

Parameters

Returns


conceal

[Source]

fun box conceal(
  value: Stringable val)
: String val

Parameters

Returns


bold

[Source]

fun box bold(
  value: Stringable val)
: String val

Parameters

Returns


faint

[Source]

fun box faint(
  value: Stringable val)
: String val

Parameters

Returns


invert

[Source]

fun box invert(
  value: Stringable val)
: String val

Parameters

Returns


italics

[Source]

fun box italics(
  value: Stringable val)
: String val

Parameters

Returns


underline

[Source]

fun box underline(
  value: Stringable val)
: String val

Parameters

Returns


strikeout

[Source]

fun box strikeout(
  value: Stringable val)
: String val

Parameters

Returns


color

[Source]

fun box color(
  value: Stringable val,
  fg: U8 val,
  bg: (None val | U8 val) = reference)
: String val

Parameters

Returns


color_with

[Source]

fun box color_with(
  value: Stringable val,
  fg: String val,
  bg: (None val | String val) = reference)
: String val

Parameters

Returns


eq

[Source]

fun box eq(
  that: TermText val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: TermText val)
: Bool val

Parameters

Returns