vtgamma allows you to set the gamma correction on Linux console. It also works on most terminal
emulators as well. A good deal of monitors tend to have too dark blue -- human eye is far less sensitive
to blue light. This is acceptable for photographic images that should look realistically, but can cause
blue, especially dark blue, text to be hard to read.
vtgamma is also useful on aged CRT monitors, which tend to rapidly lose the luminance-to-voltage ratio.
Even after just 2-3 years, typical CRT often needs gamma of as much as 1.6 to resemble a new one. The
author of this words has seen a specimen that needed gamma of 2 2 6 (ie, with a big loss of blue) despite
still having sharp display.
Gamma correction is given as a positive floating-point number, with 1.0 being the default.
You may also select a different palette than default "vga". A palette may then have a gamma correction
applied to it -- all options are allowed.
This version recognizes the following palettes:
vga
gruvbox
monokai
ubuntu
To affect the login prompt, it's best to: vtgamma1.6>>/etc/issue, where 1.6 is the gamma correction you
want (but see -p).
Without -p, the color profile lasts either until the next time a program resets the terminal. While this
is quite a rare thing, it happens, and thus you'll probably want to have the gamma refreshed every time a
program exits. The recommended way is to include vtgamma in PROMPT_COMMAND:
PROMPT_COMMAND='vtgamma1.6'
although if you don't want to spawn a process every prompt, you may instead edit ~/.bashrc and include
the output of vtgamma-e1.6 in PS1, enclosed between \[ and \]. Unfortunately, this won't work when you
switch between terminals using different ways of setting gamma (currently Linux console vs most graphical
terminals); MidnightCommander can't cope well with prompts containing such codes either.