User Commands  - kolor (1)

NAME

kolor(1) - [TERMINAL] set background, foreground, and cursor color of most terminal emulators (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Variables
Example
Author
License

SYNOPSIS

kolor [background foreground cursorcolor]| [-bg background][-fg foreground][-cr cursorcolor] [--verbose]

kolor --help| --usage| --version

DESCRIPTION

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‘
       tmux

Color values may be specified by name or hex value "#RRGGBB" or using RGB syntax, eg. rgb:0000/0000/0000 to rgb:ffff/ffff/ffff.

OPTIONS

-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

VARIABLES

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)

EXAMPLE

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

AUTHOR

John S. Urban

LICENSE

Public Domain


Nemo Release 3.1 kolor (1) February 23, 2025
Generated by manServer 1.08 from 9a503155-5283-4c0a-a1d5-6a1223bb535d using man macros.