Linux Commands Examples

A great documentation place for Linux commands

setvtrgb

customize the console color map

Synopsis

setvtrgb vga

setvtrgb FILE|-


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !

description

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.

When invoked with a filename or ’-’, setvtrgb expects input as follows:

color0_r,color1_r,...,color15_r
color0_g,color1_g,...,color15_g
color0_b,color1_b,...,color15_b

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

cat /sys/module/vt/parameters/default_{red,grn,blu}

The meanings of the color values are defined as follows:

+--------+--------+---------+
| 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 |
+---------------------------+


author

setvtrgb is Copyright © 2011 Alexey Gladkov <gladkov.alexey[:at:]gmail[:dot:]com>, with portions by Dustin Kirkland <kirkland[:at:]canonical[:dot:]com> and Seth Forshee <seth.forshee[:at:]canonical[:dot:]com> at Canonical Ltd.

This manual page was written by Michael Schutte <michi[:at:]debian[:dot:]org> for the Debian GNU/Linux system (but may be used by others).

How can this site be more helpful to YOU ?


give  feedback