summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-11-24add base64 input to ‘dump’Philipp Gesang
2021-11-24add base64 input for ‘set’Philipp Gesang
2021-11-24add base64 output for ‘get’Philipp Gesang
2021-11-23optionally clear after each fade stepPhilipp Gesang
2021-11-23implement fadingPhilipp Gesang
vtcol fade --ms 1000 --frequency 10 --to solarized & dmesg
2021-11-22get rid of useless lifetimesPhilipp Gesang
2021-11-16switch RawPalette to integer representationPhilipp Gesang
Introducing a simple type for RGB colors. That awkward string representation for RawPalette got unwieldy quick.
2021-11-15add KDGKBTYPE wrapperPhilipp Gesang
2021-11-15namespace ioctl related symbolsPhilipp Gesang
2021-11-15move console handling into libPhilipp Gesang
All operations are now exposed through wrappers that are member functions of ``vtcol::Console``.
2021-11-15use idiomatic syscall error wrappersPhilipp Gesang
A simplified version of the function used in std which aren’t made public.
2021-11-15turn Fd into proper wrapperPhilipp Gesang
2021-11-15drop bespoke ioctl() wrapperPhilipp Gesang
2021-11-15lib: split out libraryPhilipp Gesang
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.
2021-11-12make rustdoc shut up about snippetsPhilipp Gesang
2021-11-12bring “dump” out put in line with scheme formatPhilipp Gesang
This revamps the output in a way that allows feeding the result back into vtcol: $ vtcol dump solarized |vtcol set -
2021-11-11fix argument handling for “dump” subcommandPhilipp Gesang
D’oh!
2021-11-11avoid hard coding builtin namesPhilipp Gesang
2021-11-10add green monochrome theme (phosphor)Philipp Gesang
2021-11-10add toggle subcommandPhilipp Gesang
2021-11-10stick to asciiPhilipp Gesang
We can’t count on Unicode in the Linux console.
2021-11-10implement subcommand get (GIO_CMAP)Philipp Gesang
Get the currently active color palette using ioctl(GIO_CMAP) and attempt to match it against the builtin schemes.
2021-11-10adopt a subcommand uiPhilipp Gesang
Regroup the cli arguments into subcommands: $ vtcol dump $SCHEME $ vtcol list $ vtcol set $SCHEME
2021-11-10use trait for deriving ColorPhilipp Gesang
2021-11-10add GIO_CMAP wrapperPhilipp Gesang
We should be able to get the currently active palette.
2021-11-10clean up struct PalettePhilipp Gesang
2021-11-10turn Palette into newtypePhilipp Gesang
2021-11-10rework error handlingPhilipp Gesang
anyhow!() ftw.
2021-11-10remove interfering --help optionPhilipp Gesang
2021-11-10drop unused code from get_console_fd()Philipp Gesang
2021-11-10apply some clippy lintsPhilipp Gesang
2021-11-10fix overblown numeric handlingPhilipp Gesang
The ergonomics of these changed quite a while back.
2021-11-10remove redundant lifetimePhilipp Gesang
2021-11-10switch from lazy_static to atomicsPhilipp Gesang
Yeah const fn!
2021-11-10deal with bitrot and archaic idiomsPhilipp Gesang
Mostly adapting to match ergonomics.
2021-11-10remove gratuitous use of unsafePhilipp Gesang
2021-11-10switch from getopts to clapPhilipp Gesang
In addition to the glaring lack of ergonomics the getopts crate doesn’t even build anymore.
2021-11-10format with rustfmtPhilipp Gesang
2021-11-10use lazy_static instead of raw globalPhilipp Gesang
This crate would have been handy back in the days.
2017-01-09Fix building against current rust versionsAndrew Clemons
2015-09-15vtcol.rs: update for rustc 1.4Philipp Gesang
2015-05-26vtcol.rs: reinstate usage messagePhilipp Gesang
2015-05-08vtcol.rs: enable verbose messages on demandPhilipp Gesang
2015-05-08vtcol.rs: read from stdin if passed dash as file or scheme namePhilipp Gesang
2015-05-08vtcol.rs: output instructions when reading from stdinPhilipp Gesang
2015-05-08vtcol.rs: choose correct type of argument passed to write()Philipp Gesang
D’oh! Thanks to /u/DroidLogician for the pointer: http://www.reddit.com/r/rust/comments/3588d4/suggestions_for_handling_architecturedependent/cr22okf
2015-05-08vtcol.rs: adapt line-wise iterationPhilipp Gesang
2015-05-07vtcol.rs: optionally read scheme from stringPhilipp Gesang
2015-05-07vtcol.rs: finally catch up with 1.0; lots of “feature” directivesPhilipp Gesang
2015-05-07vtcol.rs: catch up with argv and string handling (does not build atm)Philipp Gesang