blob: 1684194f3a7f213d106c9010dc50a26f67455b4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
|
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>#98: mach_console - NEO-Layout - Trac</title><link rel="start" href="/wiki" /><link rel="search" href="/search" /><link rel="help" href="/wiki/TracGuide" /><link rel="stylesheet" href="/chrome/common/css/trac.css" type="text/css" /><link rel="stylesheet" href="/chrome/common/css/code.css" type="text/css" /><link rel="icon" href="http://neo-layout.org/favicon.ico" type="image/x-icon" /><link rel="shortcut icon" href="http://neo-layout.org/favicon.ico" type="image/x-icon" /><link rel="up" href="/ticket/98" title="Ticket #98" /><link rel="alternate" href="/attachment/ticket/98/mach_console?format=raw" title="Original Format" type="application/x-sh; charset=utf8" /><style type="text/css">
</style>
<script type="text/javascript" src="/chrome/common/js/trac.js"></script>
</head>
<body>
<div id="banner">
<div id="header"><a id="logo" href="http://neo-layout.org/"><img src="http://neo-layout.org/neo_kopf_trac_522x50.png" alt="" /></a><hr /></div>
<form id="search" action="/search" method="get">
<div>
<label for="proj-search">Search:</label>
<input type="text" id="proj-search" name="q" size="10" accesskey="f" value="" />
<input type="submit" value="Search" />
<input type="hidden" name="wiki" value="on" />
<input type="hidden" name="changeset" value="on" />
<input type="hidden" name="ticket" value="on" />
</div>
</form>
<div id="metanav" class="nav"><ul><li class="first">logged in as erik</li><li><a href="/logout">Logout</a></li><li><a href="/settings">Settings</a></li><li><a accesskey="6" href="/wiki/TracGuide">Help/Guide</a></li><li class="last"><a href="/about">About Trac</a></li></ul></div>
</div>
<div id="mainnav" class="nav"><ul><li class="first"><a accesskey="1" href="/wiki">Wiki</a></li><li><a accesskey="2" href="/timeline">Timeline</a></li><li><a accesskey="3" href="/roadmap">Roadmap</a></li><li><a href="/browser">Browse Source</a></li><li><a href="/report">View Tickets</a></li><li><a accesskey="7" href="/newticket">New Ticket</a></li><li><a accesskey="4" href="/search">Search</a></li><li class="last"><a href="/admin">Admin</a></li></ul></div>
<div id="main">
<div id="ctxtnav" class="nav"></div>
<div id="content" class="attachment">
<h1><a href="/ticket/98">Ticket #98</a>: mach_console</h1>
<table id="info" summary="Description"><tbody><tr>
<th scope="col">
File mach_console, 3.4 kB
(added by Elias Oltmanns <eo@nebensachen.de>, 1 day ago)
</th></tr><tr>
<td class="message"><p>
mach_console
</p>
</td>
</tr>
</tbody></table>
<div id="preview">
<table class="code"><thead><tr><th class="lineno">Line</th><th class="content"> </th></tr></thead><tbody><tr><th id="L1"><a href="#L1">1</a></th>
<td>#!/bin/sh</td>
</tr><tr><th id="L2"><a href="#L2">2</a></th>
<td>LC_COLLATE=C</td>
</tr><tr><th id="L3"><a href="#L3">3</a></th>
<td></td>
</tr><tr><th id="L4"><a href="#L4">4</a></th>
<td>schreiben () {</td>
</tr><tr><th id="L5"><a href="#L5">5</a></th>
<td> if [[ $2 == [a-z] ]]; then</td>
</tr><tr><th id="L6"><a href="#L6">6</a></th>
<td> printf " keycode %3s = %-22s\n" $1 $2</td>
</tr><tr><th id="L7"><a href="#L7">7</a></th>
<td> printf " altgr keycode %3s = %-22s\n" $1 $4</td>
</tr><tr><th id="L8"><a href="#L8">8</a></th>
<td> printf " shift altgr keycode %3s = %-22s\n" $1 $5</td>
</tr><tr><th id="L9"><a href="#L9">9</a></th>
<td> else</td>
</tr><tr><th id="L10"><a href="#L10">10</a></th>
<td> printf " keycode %3s = %-22s%-22s%-22s%-22s\n" $1 $2 $3 $4 $5</td>
</tr><tr><th id="L11"><a href="#L11">11</a></th>
<td> fi</td>
</tr><tr><th id="L12"><a href="#L12">12</a></th>
<td> printf " shiftl keycode %3s = %-22s\n" $1 $6</td>
</tr><tr><th id="L13"><a href="#L13">13</a></th>
<td> printf " shift shiftl keycode %3s = %-22s\n" $1 $7</td>
</tr><tr><th id="L14"><a href="#L14">14</a></th>
<td> if [[ $8 ]]; then</td>
</tr><tr><th id="L15"><a href="#L15">15</a></th>
<td> printf " altgr shiftl keycode %3s = %-22s\n" $1 $8</td>
</tr><tr><th id="L16"><a href="#L16">16</a></th>
<td> fi</td>
</tr><tr><th id="L17"><a href="#L17">17</a></th>
<td>}</td>
</tr><tr><th id="L18"><a href="#L18">18</a></th>
<td></td>
</tr><tr><th id="L19"><a href="#L19">19</a></th>
<td>lesen() {</td>
</tr><tr><th id="L20"><a href="#L20">20</a></th>
<td># Aufruf: lesen <Anzahl> <Zeilennummer in der Kurzreferenz> <Keycode der ersten Taste></td>
</tr><tr><th id="L21"><a href="#L21">21</a></th>
<td> typeset -i zeile keycode</td>
</tr><tr><th id="L22"><a href="#L22">22</a></th>
<td> zeile=$2</td>
</tr><tr><th id="L23"><a href="#L23">23</a></th>
<td> keycode=$3</td>
</tr><tr><th id="L24"><a href="#L24">24</a></th>
<td> for i in $(seq 1 $1)</td>
</tr><tr><th id="L25"><a href="#L25">25</a></th>
<td> do</td>
</tr><tr><th id="L26"><a href="#L26">26</a></th>
<td> a=`head -$zeile kurzreferenz | tail -1`</td>
</tr><tr><th id="L27"><a href="#L27">27</a></th>
<td> schreiben $keycode $a</td>
</tr><tr><th id="L28"><a href="#L28">28</a></th>
<td> zeile=zeile+1</td>
</tr><tr><th id="L29"><a href="#L29">29</a></th>
<td> keycode=keycode+1</td>
</tr><tr><th id="L30"><a href="#L30">30</a></th>
<td> done</td>
</tr><tr><th id="L31"><a href="#L31">31</a></th>
<td>}</td>
</tr><tr><th id="L32"><a href="#L32">32</a></th>
<td></td>
</tr><tr><th id="L33"><a href="#L33">33</a></th>
<td>cat console.sondertasten</td>
</tr><tr><th id="L34"><a href="#L34">34</a></th>
<td>echo</td>
</tr><tr><th id="L35"><a href="#L35">35</a></th>
<td>echo</td>
</tr><tr><th id="L36"><a href="#L36">36</a></th>
<td>echo "! ----Space key-------------------------------------------------------------"</td>
</tr><tr><th id="L37"><a href="#L37">37</a></th>
<td>lesen 1 2 57</td>
</tr><tr><th id="L38"><a href="#L38">38</a></th>
<td></td>
</tr><tr><th id="L39"><a href="#L39">39</a></th>
<td>echo</td>
</tr><tr><th id="L40"><a href="#L40">40</a></th>
<td>echo "! ----dead keys-------------------------------------------------------------"</td>
</tr><tr><th id="L41"><a href="#L41">41</a></th>
<td>lesen 1 3 41</td>
</tr><tr><th id="L42"><a href="#L42">42</a></th>
<td>lesen 1 4 13</td>
</tr><tr><th id="L43"><a href="#L43">43</a></th>
<td>lesen 1 5 27</td>
</tr><tr><th id="L44"><a href="#L44">44</a></th>
<td></td>
</tr><tr><th id="L45"><a href="#L45">45</a></th>
<td>echo</td>
</tr><tr><th id="L46"><a href="#L46">46</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L47"><a href="#L47">47</a></th>
<td>echo "! Row 1 (number row)"</td>
</tr><tr><th id="L48"><a href="#L48">48</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L49"><a href="#L49">49</a></th>
<td>lesen 11 6 2</td>
</tr><tr><th id="L50"><a href="#L50">50</a></th>
<td></td>
</tr><tr><th id="L51"><a href="#L51">51</a></th>
<td>echo</td>
</tr><tr><th id="L52"><a href="#L52">52</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L53"><a href="#L53">53</a></th>
<td>echo "! Row 2 (upper row)"</td>
</tr><tr><th id="L54"><a href="#L54">54</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L55"><a href="#L55">55</a></th>
<td>lesen 11 17 16</td>
</tr><tr><th id="L56"><a href="#L56">56</a></th>
<td></td>
</tr><tr><th id="L57"><a href="#L57">57</a></th>
<td></td>
</tr><tr><th id="L58"><a href="#L58">58</a></th>
<td>echo</td>
</tr><tr><th id="L59"><a href="#L59">59</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L60"><a href="#L60">60</a></th>
<td>echo "! Row 3 (home row, middle row)"</td>
</tr><tr><th id="L61"><a href="#L61">61</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L62"><a href="#L62">62</a></th>
<td>lesen 11 28 30</td>
</tr><tr><th id="L63"><a href="#L63">63</a></th>
<td></td>
</tr><tr><th id="L64"><a href="#L64">64</a></th>
<td>echo</td>
</tr><tr><th id="L65"><a href="#L65">65</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L66"><a href="#L66">66</a></th>
<td>echo "! Row 4 (lower row)"</td>
</tr><tr><th id="L67"><a href="#L67">67</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L68"><a href="#L68">68</a></th>
<td>lesen 10 39 44</td>
</tr><tr><th id="L69"><a href="#L69">69</a></th>
<td></td>
</tr><tr><th id="L70"><a href="#L70">70</a></th>
<td>echo</td>
</tr><tr><th id="L71"><a href="#L71">71</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L72"><a href="#L72">72</a></th>
<td>echo "! Keypad Row 1 (uppest row)"</td>
</tr><tr><th id="L73"><a href="#L73">73</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L74"><a href="#L74">74</a></th>
<td>lesen 1 49 69</td>
</tr><tr><th id="L75"><a href="#L75">75</a></th>
<td>lesen 1 50 98</td>
</tr><tr><th id="L76"><a href="#L76">76</a></th>
<td>lesen 1 51 55</td>
</tr><tr><th id="L77"><a href="#L77">77</a></th>
<td>lesen 1 52 74</td>
</tr><tr><th id="L78"><a href="#L78">78</a></th>
<td></td>
</tr><tr><th id="L79"><a href="#L79">79</a></th>
<td>echo</td>
</tr><tr><th id="L80"><a href="#L80">80</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L81"><a href="#L81">81</a></th>
<td>echo "! Keypad Row 2 (upper row)"</td>
</tr><tr><th id="L82"><a href="#L82">82</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L83"><a href="#L83">83</a></th>
<td>lesen 3 53 71</td>
</tr><tr><th id="L84"><a href="#L84">84</a></th>
<td>lesen 1 56 78</td>
</tr><tr><th id="L85"><a href="#L85">85</a></th>
<td></td>
</tr><tr><th id="L86"><a href="#L86">86</a></th>
<td>echo</td>
</tr><tr><th id="L87"><a href="#L87">87</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L88"><a href="#L88">88</a></th>
<td>echo "! Keypad Row 3 (home row, middle row)"</td>
</tr><tr><th id="L89"><a href="#L89">89</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L90"><a href="#L90">90</a></th>
<td>lesen 3 57 75</td>
</tr><tr><th id="L91"><a href="#L91">91</a></th>
<td></td>
</tr><tr><th id="L92"><a href="#L92">92</a></th>
<td>echo</td>
</tr><tr><th id="L93"><a href="#L93">93</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L94"><a href="#L94">94</a></th>
<td>echo "! Keypad Row 4 (lower row)"</td>
</tr><tr><th id="L95"><a href="#L95">95</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L96"><a href="#L96">96</a></th>
<td>lesen 3 60 79</td>
</tr><tr><th id="L97"><a href="#L97">97</a></th>
<td></td>
</tr><tr><th id="L98"><a href="#L98">98</a></th>
<td>echo</td>
</tr><tr><th id="L99"><a href="#L99">99</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L100"><a href="#L100">100</a></th>
<td>echo "! Keypad Row 5 (lowest row)"</td>
</tr><tr><th id="L101"><a href="#L101">101</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L102"><a href="#L102">102</a></th>
<td>lesen 2 64 82</td>
</tr><tr><th id="L103"><a href="#L103">103</a></th>
<td></td>
</tr><tr><th id="L104"><a href="#L104">104</a></th>
<td>cat console.more_control</td>
</tr><tr><th id="L105"><a href="#L105">105</a></th>
<td></td>
</tr><tr><th id="L106"><a href="#L106">106</a></th>
<td>echo</td>
</tr><tr><th id="L107"><a href="#L107">107</a></th>
<td>echo</td>
</tr><tr><th id="L108"><a href="#L108">108</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L109"><a href="#L109">109</a></th>
<td>echo "! Strings and Compose"</td>
</tr><tr><th id="L110"><a href="#L110">110</a></th>
<td>echo "! --------------------------------------------------------------------------"</td>
</tr><tr><th id="L111"><a href="#L111">111</a></th>
<td>echo "# string F100 = \"setleds +num\n\""</td>
</tr><tr><th id="L112"><a href="#L112">112</a></th>
<td></td>
</tr><tr><th id="L113"><a href="#L113">113</a></th>
<td>#cat console.string_compose</td>
</tr></tbody></table>
</div>
<div class="buttons">
<form method="get" action=""><div id="delete">
<input type="hidden" name="action" value="delete" />
<input type="submit" value="Delete attachment" />
</div></form>
</div>
</div>
<script type="text/javascript">searchHighlight()</script>
<div id="altlinks"><h3>Download in other formats:</h3><ul><li class="first last"><a href="/attachment/ticket/98/mach_console?format=raw">Original Format</a></li></ul></div>
</div>
<div id="footer">
<hr />
<a id="tracpowered" href="http://trac.edgewall.org/"><img src="/chrome/common/trac_logo_mini.png" height="30" width="107"
alt="Trac Powered"/></a>
<p class="left">
Powered by <a href="/about"><strong>Trac 0.10.4</strong></a><br />
By <a href="http://www.edgewall.org/">Edgewall Software</a>.
</p>
<p class="right">
</p>
</div>
</body>
</html>
|