From e579802c1ff631b93aa4be3e9c0a2ecac10601eb Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 30 Dec 2008 12:37:33 +0000 Subject: was für ein dummer fehler von mir :-) jetzt stimmt es. siehe ticket #98 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@1357 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- linux/console/bin/mach_console | 429 +++++++++++------------------------------ 1 file changed, 113 insertions(+), 316 deletions(-) (limited to 'linux/console/bin/mach_console') diff --git a/linux/console/bin/mach_console b/linux/console/bin/mach_console index 1684194..996e6fc 100755 --- a/linux/console/bin/mach_console +++ b/linux/console/bin/mach_console @@ -1,316 +1,113 @@ - - - - #98: mach_console - NEO-Layout - Trac - - - - - - - - -
- - - - - - -
- - -

Ticket #98: mach_console

- - - - -
- File mach_console, 3.4 kB - (added by Elias Oltmanns <eo@nebensachen.de>, 1 day ago) -

-mach_console -

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Line 
1#!/bin/sh
2LC_COLLATE=C
3
4schreiben () {
5        if [[ $2 == [a-z] ]]; then
6                printf "                   keycode %3s = %-22s\n" $1 $2
7                printf "           altgr   keycode %3s = %-22s\n" $1 $4
8                printf "   shift   altgr   keycode %3s = %-22s\n" $1 $5
9        else
10                printf "                   keycode %3s = %-22s%-22s%-22s%-22s\n" $1 $2 $3 $4 $5
11        fi
12        printf "           shiftl  keycode %3s = %-22s\n" $1 $6
13        printf "   shift   shiftl  keycode %3s = %-22s\n" $1 $7
14        if [[ $8 ]]; then
15                printf "   altgr   shiftl  keycode %3s = %-22s\n" $1 $8
16        fi
17}
18
19lesen() {
20# Aufruf: lesen <Anzahl> <Zeilennummer in der Kurzreferenz> <Keycode der ersten Taste>
21        typeset -i zeile keycode
22        zeile=$2
23        keycode=$3
24        for i in $(seq 1 $1)
25        do
26                a=`head -$zeile kurzreferenz | tail -1`
27                schreiben $keycode $a
28                zeile=zeile+1
29                keycode=keycode+1
30        done
31}
32
33cat console.sondertasten
34echo
35echo
36echo "! ----Space key-------------------------------------------------------------"
37lesen 1 2 57
38
39echo
40echo "! ----dead keys-------------------------------------------------------------"
41lesen 1 3 41
42lesen 1 4 13
43lesen 1 5 27
44
45echo
46echo "! --------------------------------------------------------------------------"
47echo "! Row 1 (number row)"
48echo "! --------------------------------------------------------------------------"
49lesen 11 6 2
50
51echo
52echo "! --------------------------------------------------------------------------"
53echo "! Row 2 (upper row)"
54echo "! --------------------------------------------------------------------------"
55lesen 11 17 16
56
57
58echo
59echo "! --------------------------------------------------------------------------"
60echo "! Row 3 (home row, middle row)"
61echo "! --------------------------------------------------------------------------"
62lesen 11 28 30
63
64echo
65echo "! --------------------------------------------------------------------------"
66echo "! Row 4 (lower row)"
67echo "! --------------------------------------------------------------------------"
68lesen 10 39 44
69
70echo
71echo "! --------------------------------------------------------------------------"
72echo "! Keypad Row 1 (uppest row)"
73echo "! --------------------------------------------------------------------------"
74lesen 1 49 69
75lesen 1 50 98
76lesen 1 51 55
77lesen 1 52 74
78
79echo
80echo "! --------------------------------------------------------------------------"
81echo "! Keypad Row 2 (upper row)"
82echo "! --------------------------------------------------------------------------"
83lesen 3 53 71
84lesen 1 56 78
85
86echo
87echo "! --------------------------------------------------------------------------"
88echo "! Keypad Row 3 (home row, middle row)"
89echo "! --------------------------------------------------------------------------"
90lesen 3 57 75
91
92echo
93echo "! --------------------------------------------------------------------------"
94echo "! Keypad Row 4 (lower row)"
95echo "! --------------------------------------------------------------------------"
96lesen 3 60 79
97
98echo
99echo "! --------------------------------------------------------------------------"
100echo "! Keypad Row 5 (lowest row)"
101echo "! --------------------------------------------------------------------------"
102lesen 2 64 82
103
104cat console.more_control
105
106echo
107echo
108echo "! --------------------------------------------------------------------------"
109echo "! Strings and Compose"
110echo "! --------------------------------------------------------------------------"
111echo "# string F100 = \"setleds +num\n\""
112
113#cat console.string_compose
-
-
-
- - -
-
- - -
- - - -
- - - - - - - - +#!/bin/sh +LC_COLLATE=C + +schreiben () { + 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 + 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 + printf " altgr shiftl keycode %3s = %-22s\n" $1 $8 + fi +} + +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 +echo +echo "! ----Space key-------------------------------------------------------------" +lesen 1 2 57 + +echo +echo "! ----dead keys-------------------------------------------------------------" +lesen 1 3 41 +lesen 1 4 13 +lesen 1 5 27 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Row 1 (number row)" +echo "! --------------------------------------------------------------------------" +lesen 11 6 2 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Row 2 (upper row)" +echo "! --------------------------------------------------------------------------" +lesen 11 17 16 + + +echo +echo "! --------------------------------------------------------------------------" +echo "! Row 3 (home row, middle row)" +echo "! --------------------------------------------------------------------------" +lesen 11 28 30 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Row 4 (lower row)" +echo "! --------------------------------------------------------------------------" +lesen 10 39 44 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Keypad Row 1 (uppest row)" +echo "! --------------------------------------------------------------------------" +lesen 1 49 69 +lesen 1 50 98 +lesen 1 51 55 +lesen 1 52 74 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Keypad Row 2 (upper row)" +echo "! --------------------------------------------------------------------------" +lesen 3 53 71 +lesen 1 56 78 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Keypad Row 3 (home row, middle row)" +echo "! --------------------------------------------------------------------------" +lesen 3 57 75 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Keypad Row 4 (lower row)" +echo "! --------------------------------------------------------------------------" +lesen 3 60 79 + +echo +echo "! --------------------------------------------------------------------------" +echo "! Keypad Row 5 (lowest row)" +echo "! --------------------------------------------------------------------------" +lesen 2 64 82 + +cat console.more_control + +echo +echo +echo "! --------------------------------------------------------------------------" +echo "! Strings and Compose" +echo "! --------------------------------------------------------------------------" +echo "# string F100 = \"setleds +num\n\"" + +#cat console.string_compose -- cgit v1.2.3