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
2 LC_COLLATE=C
3
4 schreiben () {
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
19 lesen() {
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
33 cat console.sondertasten
34 echo
35 echo
36 echo "! ----Space key-------------------------------------------------------------"
37 lesen 1 2 57
38
39 echo
40 echo "! ----dead keys-------------------------------------------------------------"
41 lesen 1 3 41
42 lesen 1 4 13
43 lesen 1 5 27
44
45 echo
46 echo "! --------------------------------------------------------------------------"
47 echo "! Row 1 (number row)"
48 echo "! --------------------------------------------------------------------------"
49 lesen 11 6 2
50
51 echo
52 echo "! --------------------------------------------------------------------------"
53 echo "! Row 2 (upper row)"
54 echo "! --------------------------------------------------------------------------"
55 lesen 11 17 16
56
57
58 echo
59 echo "! --------------------------------------------------------------------------"
60 echo "! Row 3 (home row, middle row)"
61 echo "! --------------------------------------------------------------------------"
62 lesen 11 28 30
63
64 echo
65 echo "! --------------------------------------------------------------------------"
66 echo "! Row 4 (lower row)"
67 echo "! --------------------------------------------------------------------------"
68 lesen 10 39 44
69
70 echo
71 echo "! --------------------------------------------------------------------------"
72 echo "! Keypad Row 1 (uppest row)"
73 echo "! --------------------------------------------------------------------------"
74 lesen 1 49 69
75 lesen 1 50 98
76 lesen 1 51 55
77 lesen 1 52 74
78
79 echo
80 echo "! --------------------------------------------------------------------------"
81 echo "! Keypad Row 2 (upper row)"
82 echo "! --------------------------------------------------------------------------"
83 lesen 3 53 71
84 lesen 1 56 78
85
86 echo
87 echo "! --------------------------------------------------------------------------"
88 echo "! Keypad Row 3 (home row, middle row)"
89 echo "! --------------------------------------------------------------------------"
90 lesen 3 57 75
91
92 echo
93 echo "! --------------------------------------------------------------------------"
94 echo "! Keypad Row 4 (lower row)"
95 echo "! --------------------------------------------------------------------------"
96 lesen 3 60 79
97
98 echo
99 echo "! --------------------------------------------------------------------------"
100 echo "! Keypad Row 5 (lowest row)"
101 echo "! --------------------------------------------------------------------------"
102 lesen 2 64 82
103
104 cat console.more_control
105
106 echo
107 echo
108 echo "! --------------------------------------------------------------------------"
109 echo "! Strings and Compose"
110 echo "! --------------------------------------------------------------------------"
111 echo "# string F100 = \"setleds +num\n\""
112
113 #cat console.string_compose