copy

fun copy(defaultForeground: Int = this.defaultForeground, defaultBackground: Int = this.defaultBackground, selectionForeground: Int = this.selectionForeground, selectionBackground: Int = this.selectionBackground, cursorForeground: Int = this.cursorForeground, cursorBackground: Int = this.cursorBackground, indexedColors: IntArray = indexedColorStorage, boldAsBright: Boolean = this.boldAsBright): TerminalColorPalette

Creates a palette with selected properties replaced.

Return

immutable palette copy.

Parameters

defaultForeground

default foreground ARGB color.

defaultBackground

default background ARGB color.

selectionForeground

selection foreground ARGB color.

selectionBackground

selection background ARGB color.

cursorForeground

cursor foreground ARGB color.

cursorBackground

cursor background ARGB color.

indexedColors

256-entry indexed palette in packed ARGB form.

boldAsBright

whether indexed ANSI 0..7 foreground colors should use bright variants 8..15 when bold is active.