Subject: Re: Extended Keyboard
To: SUNAGAWA Keiki <Keiki_Sunagawa@yokogawa.co.jp>
From: Kevin Havener <havenerk@Walden.MO.NET>
List: port-mac68k
Date: 01/19/1998 22:50:39
OK, finally got time to do this.

	[OA = up
	[OB = down
	[OC = right
	[OD = left

On Mon, 19 Jan 1998, SUNAGAWA Keiki wrote:

> Kevin Havener <havenerk@Walden.MO.NET>  wrote:
> 
> Kevin> Yeah, I'm using vt220 on the console.  Haven't mucked
> Kevin> with X yet except to verify that it worked.  Yay!
> 
> ok.  I think your problem is related to inconsistency of
> termcap entry and character code your keyboard generates.
> 
> Please try following step and let me know the result.
> 
> 1. Invoke vi.
> 2. Type `a' or `i' to insert charcters.
> 3. Type ^V (ctl-v) and <one of the arrow key> and show what
>    shows on screen.
> 
> In my case, I typed left arrow key and got `^[OD'.  My
> termcap file contains `kl' entry and is `kl=\EOD'.  They
> should be consistent with each other.

 
Seems that our arrow keys generate the same code.  But you're over
my head with the termcap explanation :-). 


> Kevin> I have the FAQ in front of my now, but I'm not
> Kevin> finding what I need.  There's a question about X and
> Kevin> an answer about .xmodmap (I think it was) but haven't
> Kevin> found anything about console or dt yet.  Actually I
> Kevin> don't have dt installed yet.  Maybe it says something
> Kevin> about the problem in the dt docs.
> 
> It seems to be added to the FAQ.  How do you think, Colin?
> 
> Kevin>                                     Kevin
> 
> Kevin> PS Along these same lines, does the fact that I'm
> Kevin> using some 3rd party extended keyboard matter?
> 
> I donno, but if arrow keys generate some kind of charcters,
> it handled with termcap.

BTW its an Adesso extended keyboard.  Did a quick man termcap 
and a man 5 termcap, then a less /usr/share/misc/termcap.  I 
think I understand now where the fix may lie, but I'm still
basically clueless :-)
 
> I hope it helps.
> 
> --
> SUNAGAWA Keiki <Keiki_Sunagawa@yokogawa.co.jp>
> Happy Hacking!
>