summaryrefslogtreecommitdiffstats
path: root/linux/console/bin/mach_console
diff options
context:
space:
mode:
authorpascal <pascal@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-01-19 11:11:29 +0000
committerpascal <pascal@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-01-19 11:11:29 +0000
commit47821db4256ba0859dfd164b05ff2d9cb5e1a729 (patch)
tree32a9f89e69a6c9457398cc2c4f18e307f0e351b1 /linux/console/bin/mach_console
parentf6e1e3839e8db47c510a9a90349229e6bfa85758 (diff)
fünktionierende Version von Elias
git-svn-id: https://svn.neo-layout.org@1481 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to '')
-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
}