Couldn't you simply check the platform at load time, adapting the behavior of the DEL to mimic BS when running under OSX?  That, or have a separate mapping file for each platform that loads at run-time which would also hold potential to all a more user definable approach for mapping key sequences and such to user-defined macros.
<br><br><div><span class="gmail_quote">On 10/25/06, <b class="gmail_sendername">Dino Viehland</b> &lt;<a href="mailto:dinov@exchange.microsoft.com">dinov@exchange.microsoft.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for the bug reports.&nbsp;&nbsp;I've opened a bug for the dictionary deletion issue (<a href="http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&amp;WorkItemId=4769">http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&amp;WorkItemId=4769
</a>).<br><br>I'm a little worried about treating DEL the same as backspace - what happens when an actual DEL character comes in?&nbsp;&nbsp;This one has come up before too, but I don't think we yet have a bug on it.<br><br>-----Original Message-----
<br>From: <a href="mailto:users-bounces@lists.ironpython.com">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com">users-bounces@lists.ironpython.com</a>] On Behalf Of Diane Trout
<br>Sent: Monday, October 23, 2006 10:44 PM<br>To: <a href="mailto:users@lists.ironpython.com">users@lists.ironpython.com</a><br>Subject: [IronPython] Possible IronPython and FePy Issues<br><br>Hi,<br><br>I'm trying to run IronPython under Mono on OS X and found a couple of issues.
<br><br>This code fragment fails when it shouldn't:<br><br>d = dict()<br>d[None] = &quot;bleem&quot;<br>del d[None]<br><br>With CPython, the key None is deleted on IronPython I get this<br>exception:<br>Traceback (most recent call last):
<br>TypeError: index must be integer or slice<br><br><br>Also another minor issue is that OS X's Terminal.app sends DEL instead of BS, so I needed to add<br><br>&nbsp;&nbsp; if (key.KeyChar == '\x7f') goto case ConsoleKey.Backspace
;&nbsp;&nbsp;// DEL<br><br>to the default case in SuperConsole.ReadLine<br><br>Diane<br>_______________________________________________<br>users mailing list<br><a href="mailto:users@lists.ironpython.com">users@lists.ironpython.com
</a><br><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br></blockquote></div><br><br clear="all"><br>-- <br>/M:D<br><br>M. David Peterson
<br><a href="http://mdavid.name">http://mdavid.name</a> | <a href="http://www.oreillynet.com/pub/au/2354">http://www.oreillynet.com/pub/au/2354</a>