/usr/share/gfxboot/bin/keymapchars is in gfxboot-dev 4.5.2-1.1-5build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #! /usr/bin/perl
while(<>) {
if(/^\s*\[\s*\S+\s*(\S+)\s*(\S+)\s*(\S+)\s*\]/) {
$k{hex $1} = 1;
$k{hex $2} = 1;
$k{hex $3} = 1;
}
}
delete $k{0};
@f = sort { $a <=> $b } (keys %k);
print "-a ";
for (@f) {
if(!defined($i)) {
printf "0x%02x", $_;
$sep = ',';
}
elsif($_ == $i + 1) {
$sep = '-';
}
else {
printf "-0x%02x", $i if $sep eq '-';
printf ",0x%02x", $_;
$sep = ',';
}
$i = $_;
}
printf "-0x%02x", $i if $sep eq '-';
print "\n";
|