SETVTRGB(1)

๐ŸŽ€ SETVTRGB(1) ยท General Commands Manual ๐ŸŽ€

okay bestie, this is the manual for setvtrgb, the tool that lets you change your console color map ๐ŸŒˆ it's giving main character energy โœจ

๐Ÿ’… NAME ๐Ÿ’…

setvtrgb - customize the console color map ๐ŸŽจ

๐Ÿงš SYNOPSIS ๐Ÿงš

setvtrgb vga

setvtrgb FILE|-

๐ŸŒธ DESCRIPTION ๐ŸŒธ

okay so setvtrgb sets the console color map in all virtual terminals at once, using custom values from a file or from standard input ๐Ÿ˜ญ the vga parameter is the iconic move here because it can also restore the settings that were built into the kernel. full reset, no cap ๐Ÿซถ

when you call it with a filename or -, it expects input laid out like this:

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

each colorN_{r,g,b} is the red, green, or blue part of that color, written in decimal from 0..255. ๐Ÿ’–

bestie, if you want to pre-seed a file in the correct format, just run:

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

and the colors are basically mapped like this ๐Ÿฆ‹

+--------+--------+---------+
| 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   |
+---------------------------+
โš ๏ธ bestie the vibe check is real: the numbers in the 0..255 range are what matter. keep your format exact or it won't land ๐Ÿ’€

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

setvtrgb is Copyright ยฉ 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. ๐Ÿซถ

this manual page was written by Michael Schutte <michi@debian.org> for the Debian GNU/Linux system (but others are allowed to use it too, iykyk ๐ŸŒท).


okay that's the whole page, bestie ๐Ÿ’œ dated July 2011, and it's all SETVTRGB(1) ๐Ÿฆ‹ now go make your console look iconic โœจ๐ŸŽ€