Pierre Le Marre 7e08c6f50f
loadkeys: Add --tkeymap to dump the keymap as text
Before this commit, the loadkeys tool enabled to dump a keymap in
various formats (binary, C) but not in its own text format. However,
there are some use cases that require text format:

- reformatting;
- golden test;
- round-trip test;
- convert XKB keymaps and thus replace ckbcomp[^1] (requires the
  upcoming XKB support).

Added the `--tkeymap` (short: `-t`) options to the loadkeys tool,
enabling dumping the keymap in *text* format after parsing it.

The output format (shape) can be optionally specified, e.g. `--tkeymap=4`
for a full table.

The option name mirrors the `--bkeymap` option that outputs a *binary*
table, so that option names are consistent: `--{b,t}keymap`.

[^1]: https://manpages.debian.org/buster/console-setup/ckbcomp.1.en.html

Signed-off-by: Pierre Le Marre <dev@wismill.eu>
2025-05-31 12:36:53 +02:00
..
2024-03-13 15:47:12 +01:00
2024-10-19 00:12:27 +02:00
2019-12-19 11:23:57 +01:00