| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Mostly about match autoref / autoderef kicking in.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
This partially reverts commit 92f35f8e90199e4d9dfbcc545be456f4c2d7a1ce.
The keyboard modifiers behave too differently from the LED state
for the const generics to pay off.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Reusing the same definitions as we have for KD{G,S}ETLED
as they’re practically the same.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
Currently only supports setting the raw state from an integer
value:
$ vtcol leds set -8 2
|
|
|
|
|
|
|
|
|
| |
Actually we add both subcommand and sub-subcommand.
Example:
[*] 15:52:40 phg@acheron vtcol $ vtcol leds get
Caps: false, Num: true, Scroll: false
|
| |
|
|
|
|
|
| |
Try and not encumber the lower level types with more dependencies
than needed.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
vtcol fade --ms 1000 --frequency 10 --to solarized & dmesg
|
| |
|
|
|
|
|
| |
Introducing a simple type for RGB colors. That awkward string
representation for RawPalette got unwieldy quick.
|
| |
|
| |
|
|
|
|
|
| |
All operations are now exposed through wrappers that are member
functions of ``vtcol::Console``.
|
|
|
|
|
| |
A simplified version of the function used in std which aren’t
made public.
|
| |
|
|
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.
|