summaryrefslogtreecommitdiff
path: root/linux/console
diff options
context:
space:
mode:
Diffstat (limited to 'linux/console')
-rwxr-xr-xlinux/console/bin/mach_console34
1 files changed, 20 insertions, 14 deletions
diff --git a/linux/console/bin/mach_console b/linux/console/bin/mach_console
index aaf5eff..6de992d 100755
--- a/linux/console/bin/mach_console
+++ b/linux/console/bin/mach_console
@@ -4,29 +4,35 @@ LC_COLLATE=C
schreiben1 () {
if [[ $2 == [a-z] ]]; then
printf " keycode %3s = %-22s\n" $1 $2
- printf " altgr keycode %3s = %-22s\n" $1 $4
- printf " shift altgr keycode %3s = %-22s\n" $1 $5
+ if [[ $4 && $4 != "VoidSymbol" ]]; then
+ printf " altgr keycode %3s = %-22s\n" $1 $4
+ fi
+ if [[ $5 && $5 != "VoidSymbol" ]]; then
+ printf " shift altgr keycode %3s = %-22s\n" $1 $5
+ fi
else
printf " keycode %3s = %-22s%-22s%-22s%-22s\n" $1 $2 $3 $4 $5
fi
- printf " shiftl keycode %3s = %-22s\n" $1 $6
- printf " shift shiftl keycode %3s = %-22s\n" $1 $7
- if [[ $8 ]]; then
+ if [[ $6 && $6 != "VoidSymbol" ]]; then
+ printf " shiftl keycode %3s = %-22s\n" $1 $6
+ fi
+ if [[ $7 && $7 != "VoidSymbol" ]]; then
+ printf " shift shiftl keycode %3s = %-22s\n" $1 $7
+ fi
+ if [[ $8 && $8 != "VoidSymbol" ]]; then
printf " altgr shiftl keycode %3s = %-22s\n" $1 $8
fi
}
schreiben2 () {
- if [[ $2 == [a-z] ]]; then
- printf " keycode %3s = %-22s\n" $1 $2
- printf " altgr keycode %3s = %-22s\n" $1 $4
- printf " shift altgr keycode %3s = %-22s\n" $1 $7
- else
- printf " keycode %3s = %-22s%-22s%-22s%-22s\n" $1 $2 $3 $4 $7
+ printf " keycode %3s = %-22s%-22s%-22s%-22s\n" $1 $2 $3 $4 $5
+ if [[ $8 && $8 != "VoidSymbol" ]]; then
+ printf " shiftl keycode %3s = %-22s\n" $1 $8
+ fi
+ if [[ $9 && $9 != "VoidSymbol" ]]; then
+ printf " shift shiftl keycode %3s = %-22s\n" $1 $9
fi
- printf " shiftl keycode %3s = %-22s\n" $1 $8
- printf " shift shiftl keycode %3s = %-22s\n" $1 $5
- if [[ $6 ]]; then
+ if [[ $6 && $6 != "VoidSymbol" ]]; then
printf " altgr shiftl keycode %3s = %-22s\n" $1 $6
fi
}