pack
fun pack(foregroundKind: Int = TerminalRenderColorKind.DEFAULT, foregroundValue: Int = 0, backgroundKind: Int = TerminalRenderColorKind.DEFAULT, backgroundValue: Int = 0, bold: Boolean = false, faint: Boolean = false, italic: Boolean = false, underlineStyle: Int = TerminalRenderUnderline.NONE, blink: Boolean = false, inverse: Boolean = false, invisible: Boolean = false, strikethrough: Boolean = false): Long
Packs a public render attribute word.
This helper validates the public ABI ranges and keeps test and core translator code from duplicating bit arithmetic.
Return
packed public render attribute word.
Parameters
foregroundKind
foreground color kind.
foregroundValue
foreground color value for foregroundKind.
backgroundKind
background color kind.
backgroundValue
background color value for backgroundKind.
bold
whether bold intensity is enabled.
faint
whether faint intensity is enabled.
italic
whether italic style is enabled.
underlineStyle
underline style constant.
blink
whether blink style is enabled.
inverse
whether inverse video is enabled.
invisible
whether invisible text is enabled.
strikethrough
whether strikethrough decoration is enabled.