summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
11 dayslib: account for interrupted writesPhilipp Gesang
For the kind of ultra-short write's we're doing it's exceedingly unlikely that we'll get interrupted but it doesn't hurt to account for the possiblity.
11 dayslib: ensure drop runs for wrapped fdPhilipp Gesang
11 dayslib: cast instead of transmutingPhilipp Gesang
11 dayslib: use FromStrPhilipp Gesang
11 daysclippy: drop lifetime annotationPhilipp Gesang
11 daysclippy: auto-applyPhilipp Gesang
11 daysclippy: switch to std::io::Error::other()Philipp Gesang
11 dayslib: switch to provenance-aware castPhilipp Gesang
2022-12-02edit: simplify expressionPhilipp Gesang
2022-08-27edit: implement the actual save operationPhilipp Gesang
We save palettes in the format that can be directly re-parsed by vtcol.
2022-08-27edit: implement simple command parserPhilipp Gesang
Just single-letter commands at this point.
2022-08-25edit: implement command mode input handlingPhilipp Gesang
2022-08-22edit: add a command mode and status barPhilipp Gesang
2022-08-22edit: improve color box compositionPhilipp Gesang
2022-08-19edit: implement basic insert mode switchPhilipp Gesang
Where <i> or <CR> enter “insert mode” (i. e. activate the Edit widget) and <Esc> leaves it again.
2022-08-19edit: add setter for palette colorsPhilipp Gesang
2022-08-19edit: make selection on click actually workPhilipp Gesang
Funneled into the ``Edit`` component via globals which seems to be the only (?) way of propagating these things between elements that don’t have one another in scope.
2022-08-18edit: display color componentsPhilipp Gesang
Still no actual editing though.
2022-08-18edit: implement hjkl key bindingsPhilipp Gesang
2022-08-18edit: implement color box selectionPhilipp Gesang
2022-08-18edit: abstract out the color viewsPhilipp Gesang
2022-08-17edit: convert color ids to TextInputPhilipp Gesang
2022-08-17edit: scale color box width to window sizePhilipp Gesang
2022-08-08vtcol: fix conditional codePhilipp Gesang
2022-08-08edit: present color palettePhilipp Gesang
No actual editing functionality yet, just the colors layed out as squares on an 8?2 grid.
2022-08-08edit: set up a rudimentary 60fps windowPhilipp Gesang
Not much to see yet.
2022-08-08bin: prepare for scheme editorPhilipp Gesang
Optionally build against slint (sixtyfps) to provide an “edit” subcommand.
2022-08-08lib: rework caps flag handlingPhilipp Gesang
2021-12-22lib: fix ioctl argp castPhilipp Gesang
The argument is not a pointer-to-ulong but itself an ulong, duh!
2021-12-22expand docs to cover “kb {leds,flags}” splitPhilipp Gesang
2021-12-22bin: lib: address some clippy lintsPhilipp Gesang
Mostly about match autoref / autoderef kicking in.
2021-12-22bin: add switch for flag defaultsPhilipp Gesang
2021-12-22lib: rework led flags as composite typePhilipp Gesang
Split the underlying led bits handling into KbLeds and employ this to construct both KbLedState and KbLedFlags, preserving their distinctness. This also finally implements the handling of the default states from the higher order bits of KD*KBLED.
2021-12-22Revert "lib: implement “kb flags”"Philipp Gesang
This partially reverts commit 92f35f8e90199e4d9dfbcc545be456f4c2d7a1ce. The keyboard modifiers behave too differently from the LED state for the const generics to pay off.
2021-12-12lib: implement “kb flags”Philipp Gesang
A const-genericized version of the “kb leds” implementation. Does seem to consistently run into EINVAL no matter what flags we provide. Also incomplete as KDGKBLED / KDSKBLED pack more info into higher bits of their argument.
2021-12-12bin: move “leds” subcommand under “kb” namespacePhilipp Gesang
So instead of $ vtcol leds get that functionality is now available as $ vtcol kb leds get anticipating the keyboad related functions that are about to come.
2021-12-12lib: add ioctl wrappers for KDGKBLED / KDSKBLEDPhilipp Gesang
Reusing the same definitions as we have for KD{G,S}ETLED as they’re practically the same.
2021-12-12lib: close console fd on dropPhilipp Gesang
2021-12-12bin: allow specifying the console on the command linePhilipp Gesang
As in: $ vtcol --console /dev/tty6 colors get solarized $ vtcol --console /dev/tty6 colors set phosphor $ vtcol --console /dev/tty6 colors get phosphor That simplifies testing so much I wonder why the heck I needed this long to finally implement it.
2021-12-12bin: make --verbose a global argumentPhilipp Gesang
It shouldn’t matter where exactly it appears on the command line.
2021-12-12bin: refactor job into member functions + traitPhilipp Gesang
2021-12-12bin: lib: implement setting state of individual LEDsPhilipp Gesang
2021-12-12bin: implement led revertPhilipp Gesang
Command: $ vtcol leds set --revert Implementing this detail of KDSETLED: [I]f a higher order bit is set, the LEDs revert to normal: displaying the state of the keyboard functions of caps lock, num lock, and scroll lock.
2021-12-12bin: implement “leds set” subcommandPhilipp Gesang
Currently only supports setting the raw state from an integer value: $ vtcol leds set -8 2
2021-12-11move color ops into subcommandPhilipp Gesang
So what used to be $ vtcol set solarized becomes $ vtcol colors set solarized etc.
2021-12-08add KDGETLED subcommand to vtcol-binPhilipp Gesang
Actually we add both subcommand and sub-subcommand. Example: [*] 15:52:40 phg@acheron vtcol $ vtcol leds get Caps: false, Num: true, Scroll: false
2021-12-08add ioctl wrappers for KDGETLED / KDSETLEDPhilipp Gesang
2021-12-08be more specific about what “list” doesPhilipp Gesang
2021-11-25move base64 handling out of PalettePhilipp Gesang
Try and not encumber the lower level types with more dependencies than needed.
2021-11-24don’t panic!() on open(2) failurePhilipp Gesang