############################################################################### VTCOL ############################################################################### Change the color scheme of the virtual Linux console. Inspired by the setcolors_ utility. Usage ----- **vtcol** knows two ways of loading a color scheme: From a set of predefined palettes or by loading it from a definition file. The latter accepts input in the format supported by setcolors_. (Not much effort has been put into ensuring compliance so YMMV.) Check the subdirectory ``./schemes`` in the **vtcol** tree for examples of definition files. Three color schemes are predefined: * ``default`` the default color scheme of the Linux console. * ``solarized`` the Solarized_ color scheme, dark version. * ``solarized_light`` the Solarized_ color scheme, light version. Invoke **vtcol** with the ``set`` command specifying the scheme of your choice: :: $ vtcol set solarized_light In order to view the available schemes, use the ``list`` command. Should the scheme specified not resolve to one of the predefined ones, **vtcol** will fall back on interpreting the name as that of a file. Likewise, loading a scheme directly from a definition file is accomplished by specifying the ``--file`` argument to ``set``. :: $ vtcol set --file ./schemes/solarized Instead of an actual scheme or file name, these parameters accept ``-`` as an argument in order to read from ``stdin``. :: $ vtcol set - To show the current scheme of the active console use the ``get`` subcommand: :: $ vtcol get solarized_dark It is also possible to use vtcol to switch between two themes by means of the ``toggle`` subcommand. E. g. to cycle between “dark mode” and “light mode”: :: $ vtcol toggle solarized solarized_light To view a scheme’s definition, for instance in order to verify that **vtcol** parses it correctly, use the ``dump`` command. :: $ vtcol dump default $ vtcol dump ./schemes/solarized This will print the color definitions contained in the scheme; if the specified name does not resolve to a pre-defined scheme it will be interpreted as a file name instead. Building -------- Use Cargo to obtain a binary: :: cargo build Background ---------- The default palette that comes with a Linux terminal was inherited from a long history of virtual console implementations. The colors assigned were chosen for pragmatic reasons but that palette may not harmonize with everybody’s taste. Enter **vtcol**. **vtcol** attempts to make the console colors themeable with a simple plain text input format. The very popular themes from the Solarized_ family are included as predefined palettes; the same is true of the Linux default palette, so they can be conveniently restored when experimenting. About ----- The **vtcol** source code is available from the `canonical repository`_. **vtcol** is redistributable under the terms of the `GNU General Public License`_ version 3 (exactly). Patches or suggestions welcome. .. _setcolors: https://github.com/EvanPurkhiser/linux-vt-setcolors .. _Solarized: http://ethanschoonover.com/solarized .. _GNU General Public License: http://www.gnu.org/licenses/gpl.txt .. _canonical repository: https://gitlab.com/phgsng/vtcol