| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
|
| | |
|
| |
|
|
| |
Undoing my unnecessary feature creep.
|
| | |
|
| |
|
|
| |
Ensures that all output is received immediately if it's being piped.
|
| |
|
|
|
|
| |
This is clearer to read, as the amount of state being passed into the
utility function caused more distracting boilerplate than having a
separate function was worth.
|
| |
|
|
| |
Yeah, that did look a bit arcane.
|
| |
|
|
|
| |
Means we need no separate declaration, and it's a lot easier to infer
that the function is pure.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
It's seconds since epoch. People tend to type faster than that, but this
is a standard format.
Existing options work the same way.
|
| | |
|
| | |
|
| |
|
|
|
| |
It's quite a mess, but these links might clear stuff up for someone who
wants to know more.
|
| |
|
|
| |
More standard this way.
|
| | |
|
| | |
|
| |
|
|
|
| |
Easier to read. (Compilers would probably optimise the `printf` into a
`puts` anyway.)
|
| |
|
|
|
| |
Since this thing runs many times a second, but is very small, optimise
aggressively.
|
| |
|
|
|
|
|
| |
Improved comments.
Moved declaration of `printKeyPress` further down to decrease cognitive
load.
|
| | |
|
| |
|
|
|
|
|
| |
Yep, `hostname` is a `const char *` too, even though it's potentially
being assigned to. This is
[unintuitive](http://stackoverflow.com/a/9834194/777586), but
intentional.
|
| | |
|
| |
|
|
|
| |
Since XKBlib pulls in all of our other X dependencies, there's no need
to separately `#include` them.
|
| |
|
|
|
|
|
|
|
| |
There's no need to copy strings around when all we want is to print it
anyway. This is faster and easier to read.
Also made the output format adapt to whether `printKeyUps` is set:
There's no need to print `+` and `-` if all that we're printing is
keydowns anyway.
|
| | |
|
| |
|
|
| |
Easier to read `main` when this state isn't there.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
The typedef makes stuff a little more readable and introduces to the
typechecker that its size must be 32 elements.
Naming clarifications too.
The logic in the inner conditionals was often `fflush`ing even when
there had been no `printf`.
|
| |
|
|
|
| |
This also somewhat clarifies the relationships between the `char` arrays
and the pointers to them.
|
| |
|
|
| |
Simpler to read. Also makes it clearer what the default values are.
|
| |
|
|
| |
Less to remember when reading.
|
| |
|
|
| |
Easier on the eyes this way.
|
| | |
|
| |
|
|
|
|
|
|
| |
Makes the code easier to read: Less state to remember.
This also "accidentally" fixes a bug where `-help` would report the
wrong default value for the `-up` argument if `-up` had was set
previously in the same command.
|
| | |
|
| |
|
|
| |
This keeps source separate from history.
|
| |
|
|
|
| |
It's not just converting a keycode, but also the key's down-state, so
this is a better name. Also converted down-state arg to `bool`.
|
| |
|
|
|
|
| |
...with XKB's equivalent.
`-Wall` without warnings, yey.
|
| |
|
|
| |
Somewhat more readable this way.
|
| | |
|
| |
|
|
| |
Might as well expose that precision to the user.
|
| |
|
|
| |
`usleep` is removed from POSIX C11.
|
| |
|
|
| |
Inlined just like a macro, but has typechecking to prevent bloopers.
|
| |
|
|
| |
The `compile`-script already documents this sufficiently.
|
| |
|
|
| |
No need for TRUE/FALSE macros anymore.
|
| |
|
|
| |
Constants are type-checked; macros aren't.
|
| | |
|
| | |
|
| | |
|