kolor(1) - [TERMINAL] set background, foreground, and cursor color of most terminal emulators (LICENSE:PD)
Synopsis
Description
Options
Variables
Example
Author
License
kolor [background foreground cursorcolor]| [-bg background][-fg foreground][-cr cursorcolor] [--verbose]
kolor --help| --usage| --version
Set the background, foreground, and cursor color for terminals and terminal emulators that obey the ANSI in-band signaling control sequences, such as xterm(1).If no options are supplied, steps through known color names changing the background kolor. Obeys commands such as "back", "top", "next", "quit". Defaults to "next". Enter "help" at the prompt for a full list.
If you use something that filters stdout such as tmux(1) or screen(1) assign kolor(1) output to the initial stdout before starting the program by setting the environment variable OTHERTTY to the output device path. For example:
export OTHERTTY=tty tmuxColor values may be specified by name or hex value "#RRGGBB" or using RGB syntax, eg. rgb:0000/0000/0000 to rgb:ffff/ffff/ffff.
-bg CNAME specify background color -fg CNAME specify foreground color -cr CNAME specify cursor color --verbose display additional information --help display help and exit --version display version information and exit --usage display usage table
By default kolor(1) writes output to the current stdout file. The environment variable OTHERTTY can be used to change the default file. This is commonly required before starting programs that filter stdout, such as tmux(1) and screen(1).
export OTHERTTY=$(realpath /proc/$$/fd/1)
Sample usage:
kolor gray30 white yellow # list of colors kolor -bg brown -fg white -cr red # using keywords kolor -bg #ff00ff #RGB in hexadecimal kolor rgb:0000/8080/0000 rgb:ffff/ffff/ffff rgb:ffff/0000/0000 kolor # step through background colors
John S. Urban
Public Domain
Nemo Release 3.1 | kolor (1) | February 23, 2025 |