From 4debde5c70a7953cae029f6c4305a6739e1cf7da Mon Sep 17 00:00:00 2001 From: pascal Date: Thu, 21 Aug 2008 10:46:46 +0000 Subject: =?UTF-8?q?Skripte,=20um=20die=20keymap=20f=C3=BCr=20die=20Console?= =?UTF-8?q?=20automatisch=20erstellen=20zu=20lassen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@785 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- linux/console/bin/mach_console | 97 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100755 linux/console/bin/mach_console (limited to 'linux/console/bin/mach_console') diff --git a/linux/console/bin/mach_console b/linux/console/bin/mach_console new file mode 100755 index 0000000..8a14eb4 --- /dev/null +++ b/linux/console/bin/mach_console @@ -0,0 +1,97 @@ +#!/bin/sh + + +schreiben () { + printf " keycode %3s = %-22s%-22s%-22s%-22s\n" $1 $2 $3 $4 $5 + printf " shiftl keycode %3s = %-22s\n" $1 $6 + printf " shift shiftl keycode %3s = %-22s\n" $1 $7 + printf " altgr shiftl keycode %3s = %-22s\n" $1 $8 +} + +lesen() { +# Aufruf: lesen + typeset -i zeile keycode + zeile=$2 + keycode=$3 + for i in $(seq 1 $1) + do + a=`head -$zeile kurzreferenz | tail -1` + schreiben $keycode $a + zeile=zeile+1 + keycode=keycode+1 + done +} + +cat console.sondertasten +echo "! ----unknown keys----------------------------------------------------------" +lesen 1 64 57 + +echo +echo +echo "! --------------------------------------------------------------------------" +echo "! Row 1 (number row)" +echo "! --------------------------------------------------------------------------" +lesen 1 1 41 +lesen 12 2 2 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Row 2 (upper row)" +echo "! --------------------------------------------------------------------------" +lesen 12 14 16 + + +echo +echo "! --------------------------------------------------------------------------" +echo "! Row 3 (home row, middle row)" +echo "! --------------------------------------------------------------------------" +lesen 11 26 30 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Row 4 (lower row)" +echo "! --------------------------------------------------------------------------" +lesen 10 37 44 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Keypad Row 1 (uppest row)" +echo "! --------------------------------------------------------------------------" +lesen 1 47 69 +lesen 1 48 98 +lesen 1 49 55 +lesen 1 50 74 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Keypad Row 2 (upper row)" +echo "! --------------------------------------------------------------------------" +lesen 3 51 71 +lesen 1 54 78 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Keypad Row 3 (home row, middle row)" +echo "! --------------------------------------------------------------------------" +lesen 3 55 75 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Keypad Row 4 (lower row)" +echo "! --------------------------------------------------------------------------" +lesen 3 58 79 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Keypad Row 5 (lowest row)" +echo "! --------------------------------------------------------------------------" +lesen 2 62 82 + +echo +echo +echo "! --------------------------------------------------------------------------" +echo "! Strings and Compose" +echo "! --------------------------------------------------------------------------" +echo "string F100 = \"setleds +num\n\"" + +#cat console.string_compose \ No newline at end of file -- cgit v1.2.3