kolor(1) - [TERMINAL] set terminal background, foreground, and cursor color (LICENSE:PD)
Synopsis
Description
Options
Variables
Example
Author
License
color [background foreground cursorcolor] [-bg background][-fg foreground][-cr cursorcolor]
Set the background, foreground, and cursor color for terminals and terminal emulators that obey the ANSI in-band signaling control sequencesIf 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. 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 --help display help and exit --version display version information and exit
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=/dev/pts/1
Sample usage:
kolor gray30 white yellow kolor -bg brown -fg white -cr red kolor -bg #ff00ff kolor rgb:0000/8080/0000 rgb:ffff/ffff/ffff rgb:ffff/0000/0000
John S. Urban
Public Domain
kolor (1) | March 11, 2021 |