summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* move base64 handling out of PalettePhilipp Gesang2021-11-252-25/+26
| | | | | Try and not encumber the lower level types with more dependencies than needed.
* don’t panic!() on open(2) failurePhilipp Gesang2021-11-241-10/+10
|
* add base64 input to ‘dump’Philipp Gesang2021-11-241-7/+23
|
* add base64 input for ‘set’Philipp Gesang2021-11-242-0/+45
|
* add base64 output for ‘get’Philipp Gesang2021-11-243-6/+25
|
* optionally clear after each fade stepPhilipp Gesang2021-11-232-6/+27
|
* implement fadingPhilipp Gesang2021-11-232-3/+195
| | | | vtcol fade --ms 1000 --frequency 10 --to solarized & dmesg
* get rid of useless lifetimesPhilipp Gesang2021-11-221-5/+5
|
* switch RawPalette to integer representationPhilipp Gesang2021-11-162-51/+96
| | | | | Introducing a simple type for RGB colors. That awkward string representation for RawPalette got unwieldy quick.
* add KDGKBTYPE wrapperPhilipp Gesang2021-11-151-8/+14
|
* namespace ioctl related symbolsPhilipp Gesang2021-11-151-45/+53
|
* move console handling into libPhilipp Gesang2021-11-152-104/+162
| | | | | All operations are now exposed through wrappers that are member functions of ``vtcol::Console``.
* use idiomatic syscall error wrappersPhilipp Gesang2021-11-151-24/+48
| | | | | A simplified version of the function used in std which aren’t made public.
* turn Fd into proper wrapperPhilipp Gesang2021-11-152-21/+39
|
* drop bespoke ioctl() wrapperPhilipp Gesang2021-11-151-16/+3
|
* decontaminate library from clap and anyhow depsPhilipp Gesang2021-11-152-12/+28
|
* lib: split out libraryPhilipp Gesang2021-11-153-533/+580
| | | | | | | Not really a satisfactorily clean split as of yet but it’s a start. Error types have been changed from anyhow to io::Error in ``lib.rs`` so as to not force an error handling crate on downstream users.
* add rustdoc to doc recipePhilipp Gesang2021-11-121-1/+7
|
* make rustdoc shut up about snippetsPhilipp Gesang2021-11-121-0/+1
|
* bring “dump” out put in line with scheme formatPhilipp Gesang2021-11-121-24/+36
| | | | | | | This revamps the output in a way that allows feeding the result back into vtcol: $ vtcol dump solarized |vtcol set -
* fix argument handling for “dump” subcommandPhilipp Gesang2021-11-111-2/+2
| | | | D’oh!
* add build recipe for binaryPhilipp Gesang2021-11-111-5/+14
|
* fill in manpagePhilipp Gesang2021-11-111-11/+152
|
* add built instructions for manpagePhilipp Gesang2021-11-113-1/+26
|
* avoid hard coding builtin namesPhilipp Gesang2021-11-112-48/+104
|
* add green monochrome theme (phosphor)Philipp Gesang2021-11-101-0/+21
|
* add toggle subcommandPhilipp Gesang2021-11-103-1/+54
|
* update readmePhilipp Gesang2021-11-101-28/+27
|
* bump versionPhilipp Gesang2021-11-101-1/+1
|
* stick to asciiPhilipp Gesang2021-11-101-4/+4
| | | | We can’t count on Unicode in the Linux console.
* implement subcommand get (GIO_CMAP)Philipp Gesang2021-11-101-36/+89
| | | | | Get the currently active color palette using ioctl(GIO_CMAP) and attempt to match it against the builtin schemes.
* adopt a subcommand uiPhilipp Gesang2021-11-101-60/+90
| | | | | | | | Regroup the cli arguments into subcommands: $ vtcol dump $SCHEME $ vtcol list $ vtcol set $SCHEME
* use trait for deriving ColorPhilipp Gesang2021-11-101-34/+36
|
* add GIO_CMAP wrapperPhilipp Gesang2021-11-101-0/+16
| | | | We should be able to get the currently active palette.
* clean up struct PalettePhilipp Gesang2021-11-101-43/+43
|
* turn Palette into newtypePhilipp Gesang2021-11-101-13/+10
|
* rework error handlingPhilipp Gesang2021-11-102-53/+103
| | | | anyhow!() ftw.
* remove interfering --help optionPhilipp Gesang2021-11-101-7/+0
|
* drop unused code from get_console_fd()Philipp Gesang2021-11-101-22/+11
|
* apply some clippy lintsPhilipp Gesang2021-11-101-15/+12
|
* fix overblown numeric handlingPhilipp Gesang2021-11-101-12/+12
| | | | The ergonomics of these changed quite a while back.
* remove redundant lifetimePhilipp Gesang2021-11-101-1/+1
|
* switch from lazy_static to atomicsPhilipp Gesang2021-11-102-8/+4
| | | | Yeah const fn!
* deal with bitrot and archaic idiomsPhilipp Gesang2021-11-101-94/+90
| | | | Mostly adapting to match ergonomics.
* remove gratuitous use of unsafePhilipp Gesang2021-11-101-2/+2
|
* switch from getopts to clapPhilipp Gesang2021-11-102-98/+88
| | | | | In addition to the glaring lack of ergonomics the getopts crate doesn’t even build anymore.
* format with rustfmtPhilipp Gesang2021-11-101-338/+285
|
* add rustfmt settingsPhilipp Gesang2021-11-101-0/+31
|
* use lazy_static instead of raw globalPhilipp Gesang2021-11-102-8/+12
| | | | This crate would have been handy back in the days.
* ignore lockfilePhilipp Gesang2021-11-102-21/+2
| | | | Build artifact doesn’t belong in the repo.