Home Contents | # trm:colors | Graphics | Core4 Lua Commands

## SYNOPSIS

1. table = trm:colors()
2. trm:colors(table)

## DESCRIPTION

The first form queries the configured terminal colors, while the second form changes the colors used by the terminal.

The colors are listed in a table:

Key | Description | Default value
--- | --- | ---
1 … 8 | Terminal colors 1 to 8, normal mode | #000000, #AA0000, #00AA00, #AA5500, #0000AA, #AA00AA, #00AAAA, #AAAAAA
9 … 16 | Terminal colors 1 to 8, intensity mode | #555555, #FF5555, #55FF55, #FFFF55, #5555FF, #FF55FF, #55FFFF, #FFFFFF
17 … 24 | Terminal colors 1 to 8, dim mode | #000000, #800000, #008000, #808000, #000080, #800080, #008080, #808080
bgcolor | Default text background color | #000000
color | Default text color | #C0C0C0
bright | Default text color, intensity mode | #FFFFFF
dim | Default text color, dim mode | #808080

## ERRORS

Raises an error if trm is not a terminal emulator handle.

## SEE ALSO

gcx:terminal, trm:close, trm:update, trm:redraw