summaryrefslogtreecommitdiffstats
path: root/upstream/debian-unstable/man1/setvtrgb.1
blob: b4f922d0f2949b446f63cf8aa5ed22dae57c20b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.TH SETVTRGB 1 "July 2011"
.SH NAME
setvtrgb \- customize the console color map
.SH SYNOPSIS
\fBsetvtrgb\fR vga
.LP
\fBsetvtrgb\fR \fIFILE\fR|-
.SH DESCRIPTION
.B
setvtrgb
sets the console color map in all virtual terminals according to custom
values specified in a file or standard input.  With the `vga' parameter,
it can also be used to restore the settings built into the kernel.
.LP
When invoked with a filename or `-',
.B
setvtrgb
expects input as follows:
.PP
  color0_r,color1_r,...,color15_r
  color0_g,color1_g,...,color15_g
  color0_b,color1_b,...,color15_b
.LP
where colorN_{r,g,b} is the red/green/blue portion of the respective
color in decimal notation in the 0..255 range.  To pre-seed a file in
the correct format, you can use
.PP
  cat /sys/module/vt/parameters/default_{red,grn,blu}
.LP
The meanings of the color values are defined as follows:
.PP
  +--------+--------+---------+
  | Normal | Bright | Color   |
  +--------+--------+---------+
  |      0 |      8 | Black   |
  |      1 |      9 | Red     |
  |      2 |     10 | Green   |
  |      3 |     11 | Yellow  |
  |      4 |     12 | Blue    |
  |      5 |     13 | Magenta |
  |      6 |     14 | Cyan    |
  |      7 |     15 | White   |
  +---------------------------+
.SH AUTHOR
setvtrgb is Copyright \(co 2011 Alexey Gladkov
<gladkov.alexey@gmail.com>, with portions by Dustin Kirkland
<kirkland@canonical.com> and Seth Forshee <seth.forshee@canonical.com>
at Canonical Ltd.
.LP
This manual page was written by Michael Schutte <michi@debian.org> for
the Debian GNU/Linux system (but may be used by others).