diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2015-05-03 12:08:36 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2015-05-03 15:46:49 +0200 |
commit | 383bbe27eb0e64f06ea563113c2d1ebf56c3b7d8 (patch) | |
tree | c69ec15d7d7c3044ca17829e9852c248b05fb02a | |
parent | 3dc29cd91e4fe3ad2b4ff2b64109d1bf680c1880 (diff) | |
download | vtcol-383bbe27eb0e64f06ea563113c2d1ebf56c3b7d8.tar.gz |
doc: add some paragraphs sketching up the background of the tool
-rw-r--r-- | README.rst | 29 |
1 files changed, 28 insertions, 1 deletions
@@ -48,5 +48,32 @@ This will print the list of color definitions as dictated by the scheme; if the specified name does not resolve to a pre-defined scheme it will be interpreted as a file name instead. -:: _setcolors: https://github.com/.../linux-vt-setcolors +Background +########## + +The default palette that comes with a Linux terminal was inherited from a long +history of virtual console implementations. The colors assigned are chosen for +totally valid pragmatic reasons. However, the palette may not harmonize with +everybody’s taste. Unfortunately, the console can’t be themed easily: One needs +to invoke a special ``ioctl(2)`` with the colors prepared in binary form in +order for the kernel to switch the palette. + +**vtcol** attempts at facilitating the themability of the console by means of 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. + +An implementation in C which **vtcols** draws much inspiration from is +available in the setcolors_ utility. **vtcols** itself is implemented in Rust +instead; a public repository is available on Github_. The author uses the +original setcolors_ a lot, primarily inside his custom initramfs. The primary +motivations of writing **vtcols** stems from curiosity as to how the same goal +might be achieved using more modern tools. + +**vtcols** was written mostly during day-long train rides between Tübingen and +Dresden, so expect the commit history to exhibit a certain lack continuity. + +:: _setcolors: https://github.com/FIXME/linux-vt-setcolors +:: _Solarized: https://FIXME +:: _Github: https://github.com/phi-gamma/vtcols |