Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!microsoft!peterdur
From: peterdur@microsoft.UUCP (Peter Durham)
Newsgroups: comp.sys.m6809
Subject: Re: Funny key presses
Message-ID: <7430@microsoft.UUCP>
Date: 18 Aug 89 16:25:13 GMT
References: <430@ctycal.UUCP>
Reply-To: peterdur@microsoft.UUCP (Peter Durham)
Organization: Microsoft Corp., Redmond WA
Lines: 28

In article <430@ctycal.UUCP> ingoldsb@ctycal.COM (Terry Ingoldsby) writes:
>While on the same subject, it seems that the CoCo3 keyboard driver
>also makes no provision for some of the ascii characters (like
>DELETE).  Or have I just not found the magic combinations of 
>keypresses?
>
>  Terry Ingoldsby                       ctycal!ingoldsb@calgary.UUCP

Terry,

There is a table of keypress codes as one of the appendices to the OS-9 
Commands (I think) section of the Level II manual.
The magic keypress for DELETE is [Ctrl][;].  This means the CoCo3 can
generate all ASCII keypresses from space (32) to delete (127), plus
Ctrl-A (1) through Ctrl-Z (26) and escape (27).  As far as I know, the
supplied driver does not support 28,29,30,31.  It _can_ be done, though;
you would need to modify the key code lookup table (probably in CC3IO?)
Look for triplets of bytes that specify what keys generate (i.e.
'1' '!' '|' for [1], or ',' '<' '{' for [,]; etc.  This is what my
'kmode' utility did for level 1; it patched CCIO's lookup table.  
Probably the keys you would want to modify are the arrow keys, or a couple
of the number keys without a [Ctrl] value (I think [2] is one, I don't
remember [Ctrl][2] being anything).  Or you could modify [F1] and [F2];
they are set to be [Alt][1] through [Alt][6] (B1..B6) anyway. 

Peter Durham                      
microsoft!peterdur@uunet.uu.net     CoCo3, OS-9 LevII, Multivue, 5MegHD (home)
uunet!microsoft!peterdur            Compaq 386/20e, MSDos3.31, 110MegHD (work)