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 โจ๐
๐ฆ where this page comes from
- debian bookworm: kbd 2.5.1-1+b1 ยท GPL-2.0-or-later
- debian trixie: kbd 2.7.1-2 ยท GPL-2.0-or-later
- ubuntu jammy: kbd 2.3.0-3ubuntu4 ยท GPL-2.0-or-later
- ubuntu jammy: kbd 2.3.0-3ubuntu4.22.04 ยท GPL-2.0-or-later
- ubuntu noble: kbd 2.6.4-2ubuntu2 ยท GPL-2.0-or-later
- ubuntu questing: kbd 2.7.1-2ubuntu1 ยท GPL-2.0-or-later
- ubuntu resolute: kbd 2.7.1-2ubuntu2 ยท GPL-2.0-or-later
- ubuntu stonking: kbd 2.9.0-1ubuntu1 ยท GPL-2.0-or-later
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms