summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* add toggle subcommandPhilipp Gesang2021-11-101-0/+48
|
* 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-101-53/+102
| | | | 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-101-7/+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-101-97/+87
| | | | | In addition to the glaring lack of ergonomics the getopts crate doesn’t even build anymore.
* format with rustfmtPhilipp Gesang2021-11-101-338/+285
|
* use lazy_static instead of raw globalPhilipp Gesang2021-11-101-8/+11
| | | | This crate would have been handy back in the days.
* Fix building against current rust versionsAndrew Clemons2017-01-091-30/+13
|
* vtcol.rs: update for rustc 1.4Philipp Gesang2015-09-151-5/+14
|
* vtcol.rs: reinstate usage messagePhilipp Gesang2015-05-261-1/+5
|
* vtcol.rs: enable verbose messages on demandPhilipp Gesang2015-05-081-14/+26
|
* vtcol.rs: read from stdin if passed dash as file or scheme namePhilipp Gesang2015-05-081-3/+7
|
* vtcol.rs: output instructions when reading from stdinPhilipp Gesang2015-05-081-1/+3
|
* vtcol.rs: choose correct type of argument passed to write()Philipp Gesang2015-05-081-1/+1
| | | | | | | D’oh! Thanks to /u/DroidLogician for the pointer: http://www.reddit.com/r/rust/comments/3588d4/suggestions_for_handling_architecturedependent/cr22okf
* vtcol.rs: adapt line-wise iterationPhilipp Gesang2015-05-081-24/+28
|
* vtcol.rs: optionally read scheme from stringPhilipp Gesang2015-05-071-12/+41
|
* vtcol.rs: finally catch up with 1.0; lots of “feature” directivesPhilipp Gesang2015-05-071-9/+14
|
* vtcol.rs: catch up with argv and string handling (does not build atm)Philipp Gesang2015-05-071-8/+9
|
* vtcol.rs: adapt for 64 bit machinePhilipp Gesang2015-05-071-1/+1
|
* vtcol.rs: remove extraneous lifetimesPhilipp Gesang2015-05-071-9/+8
| | | | | Did the lifetime analysis improve? These were required last time I checked …
* vtcol.rs: adapt symbol paths for fs, io and stdPhilipp Gesang2015-05-071-5/+5
|
* vtcol.rs: prefer “Debug” over “Show” when deriving pretty printersPhilipp Gesang2015-05-071-4/+4
|
* vtcol.rs: adapt type suffixes for current RustPhilipp Gesang2015-05-071-30/+30
|
* vtcol.rs: move to ./src treePhilipp Gesang2015-05-031-0/+608