I actually was unable to find documentation and had to figure it out by looking at the BootX source code. TestForKey in BootX-45/bootx.tproj/sl.subproj/main.c if you are interested. This is the version of BootX used in 10.2.<div>
<br></div><div>William Hahne<br><br><div class="gmail_quote">On Wed, Aug 10, 2011 at 5:38 AM, Mark Cave-Ayland <span dir="ltr"><<a href="mailto:mark.cave-ayland@siriusit.co.uk" target="_blank">mark.cave-ayland@siriusit.co.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>On 09/08/11 22:54, William Hahne wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
"get-key-map" is a Forth word that provides a map of all the keys<br>
currently pressed on the keyboard. Since it is only used by BootX to<br>
determine if one of the shortcuts for verbose or single user mode is<br>
pressed. It is a waste of time to provide a full implementation. This<br>
just hands out a dummy key map which specifies verbose mode.<br>
<br>
Index: drivers/adb_kbd.c<br>
==============================<u></u>==============================<u></u>=======<br>
--- drivers/adb_kbd.c (revision 1041)<br>
+++ drivers/adb_kbd.c (working copy)<br>
@@ -43,10 +43,13 @@<br>
  static void keyboard_read(void);<br>
+static void keyboard_get_key_map(void);<br>
+<br>
  NODE_METHODS( keyboard ) = {<br>
{ "open", keyboard_open },<br>
{ "close", keyboard_close },<br>
{ "read",               keyboard_read },<br>
+ { "get-key-map", keyboard_get_key_map },<br>
  };<br>
  /* VT100 escape sequences */<br>
@@ -566,3 +569,18 @@<br>
}<br>
PUSH(i);<br>
  }<br>
+<br>
+static unsigned char fake_keymap[32] = {<br>
+ 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00,<br>
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br>
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,<br>
+ 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00<br>
+};<br>
+<br>
+static void keyboard_get_key_map(void)<br>
+{<br>
+ /* This is a bit of a hack since BootX requires a get-key-map word.<br>
+    In the future this should be changed to give the actual current<br>
keymap,<br>
+    but since this only effects keyboard input in BootX it isn't a<br>
priority. */<br>
+ PUSH( (int)fake_keymap );<br>
+}<br>
</blockquote>
<br></div></div>
Can you add a reference in the commit message to the documentation for the keymap layout? It's not clear how you generated the contents of the keymap blob.<br>
<br>
<br>
ATB,<br>
<br>
Mark.<br>
<br>
-- <br>
Mark Cave-Ayland - Senior Technical Architect<br>
PostgreSQL - PostGIS<br>
Sirius Corporation plc - control through freedom<br>
<a href="http://www.siriusit.co.uk" target="_blank">http://www.siriusit.co.uk</a><br>
t: <a href="tel:%2B44%20870%20608%200063" value="+448706080063" target="_blank">+44 870 608 0063</a><br>
<br>
Sirius Labs: <a href="http://www.siriusit.co.uk/labs" target="_blank">http://www.siriusit.co.uk/labs</a><br><font color="#888888">
<br>
-- <br>
OpenBIOS                 <a href="http://openbios.org/" target="_blank">http://openbios.org/</a><br>
Mailinglist:  <a href="http://lists.openbios.org/mailman/listinfo" target="_blank">http://lists.openbios.org/<u></u>mailman/listinfo</a><br>
Free your System - May the Forth be with you<br>
</font></blockquote></div><br>
</div>