From 47821db4256ba0859dfd164b05ff2d9cb5e1a729 Mon Sep 17 00:00:00 2001 From: pascal Date: Mon, 19 Jan 2009 11:11:29 +0000 Subject: fünktionierende Version von Elias MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@1481 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- linux/console/bin/mach_console | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) (limited to 'linux/console') 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 } -- cgit v1.2.3