[comp.protocols.tcp-ip.ibmpc] trouble with key bindings on NCSA Telnet

michael@nsma.arizona.EDU (Michael Williams) (01/24/91)

Hello-
  I am having trouble getting my arrow keys to work as arrows now.
Before Telnet was released with the key mapping file, TELNET.KEY,
I had no problem, but with any version post-v2.3b11, it is as if
my NUM-LOCK is active; I get 2,4,6, and 8 instead of cursor movement.

I do have the TELNET.KEY file set in the same directory as all of the
executables, etc., and I have the terminal type set to vt100.

Thanks in advance for any help,
- Michael

*******************************************************************************
Michael Williams
University of Arizona's Division of Neural Systems, Memory, and Aging
Internet: michael@synapse.nsma.arizona.edu 

blake@nevada.edu (RAWLIN BLAKE) (01/25/91)

In article <910@organpipe.UUCP> michael@nsma.arizona.EDU (Michael
Williams) writes:
>Hello-
>  I am having trouble getting my arrow keys to work as arrows now.
>Before Telnet was released with the key mapping file, TELNET.KEY,
>I had no problem, but with any version post-v2.3b11, it is as if
>my NUM-LOCK is active; I get 2,4,6, and 8 instead of cursor movement.
>
>I do have the TELNET.KEY file set in the same directory as all of the
>executables, etc., and I have the terminal type set to vt100.
>
>Thanks in advance for any help,
>- Michael

I would first check your CONFIG.TEL file to see if it is pointing to
the proper TELNET.KEY file.  (You did get rid of the pre 2.3b11
TELNET.KEY file didn't you?)  :-)  The line should be something like:

keyfile="c:\ncsa\telnet.key"


For what its worth, here's my TELNET.KEY:

---- cut here ------------------------------------------------------------
; keyboard mapping for NCSA Telnet, customized for emacs
;	DO NOT REMOVE FROM DIRECTORY TELBIN IS LOCATED IN!!
;	Emulates a vt100 keyboard

; Definitions for vt100 function keys
set key \315	\Kpf1		; F1 = vt100 function key 1
set key \316	\Kpf2		; F2 = vt100 function key 2
set key \317	\Kpf3		; F3 = vt100 function key 3
set key \318	\Kpf4		; F4 = vt100 function key 4
;set key \319		; F5
;set key \320		; F6
;set key \321		; F7
;set key \322		; F8
;set key \323		; F9
;set key \324		; F10
;set key \389		; F11
;set key \390		; F12
;set key \2408		; Alt f1
;set key \2409		; Alt f2
;set key \2410		; Alt f3
;set key \2411		; Alt f4
;set key \2412		; Alt f5
;set key \2413		; Alt f6
;set key \2414		; Alt f7
;set key \2415		; Alt f8
;set key \2416		; Alt f9
;set key \2417		; Alt f10

; Definitions for vt100 cursor keys
set key \4424	\Kuparr		; grey up arrow for vt100 uparrow
set key \4432	\Kdnarr		; grey down arrow for vt100 downarrow
set key \4427	\Klfarr		; grey left arrow for vt100 leftarrow
set key \4429	\Krtarr		; grey right arrow for vt100 rightarrow

; Definitions for vt100 keypad keys
set key \339	\Kkpdot		; map . on keypad to vt100 keypad .
set key \330	\Kkpminus	; map - on keypad to vt100 keypad -
set key \334	\Kkpcoma	; map + on keypad to vt100 keypad ,
set key \4365	\Kkpenter	; map enter on keypad to vt100 keypad enter
set key \338	\Kkp0		; map 0 on keypad to vt100 keypad 0
set key \335	\Kkp1		; map 1 on keypad to vt100 keypad 1
set key \336	\Kkp2		; map 2 on keypad to vt100 keypad 2
set key \337	\Kkp3		; map 3 on keypad to vt100 keypad 3
set key \331	\Kkp4		; map 4 on keypad to vt100 keypad 4
set key \332	\Kkp5		; map 5 on keypad to vt100 keypad 5
set key \333	\Kkp6		; map 6 on keypad to vt100 keypad 6
set key \327	\Kkp7		; map 7 on keypad to vt100 keypad 7
set key \328	\Kkp8		; map 8 on keypad to vt100 keypad 8
set key \329	\Kkp9		; map 9 on keypad to vt100 keypad 9

; Definitions for keypad keys with NumLock on
set key \851	.		; map the . key on the numeric keypad to . with Numlock
set key \850	0		; map the 0 key on the numeric keypad to 0 with Numlock
set key \847	1		; map the 1 key on the numeric keypad to 1 with Numlock
set key \848	2		; map the 2 key on the numeric keypad to 2 with Numlock
set key \849	3		; map the 3 key on the numeric keypad to 3 with Numlock
set key \843	4		; map the 4 key on the numeric keypad to 4 with Numlock
set key \844	5		; map the 5 key on the numeric keypad to 5 with Numlock
set key \845	6		; map the 6 key on the numeric keypad to 6 with Numlock
set key \839	7		; map the 7 key on the numeric keypad to 7 with Numlock
set key \840	8		; map the 8 key on the numeric keypad to 8 with Numlock
set key \841	9		; map the 9 key on the numeric keypad to 9 with Numlock


; Set the grey keys for emacs
set key \4423	\1	; Enhanced Home
set key \4431	\5	; Enhanced End
set key \4425	\27\118	; Enhanced PgUp
set key \4433	\22	; Enhanced PgDn
set key \4434	\27xoverwrite-mode\13	; Enhanced Insert
set key \4435	\4	; Enhanced Delete

; map the alt-numbers to useful strings
set key \2424	\27Op	; map Alt-1
set key \2425	\27Oq	; map Alt-2
set key \2426	\27Or	; map Alt-3
set key \2427	\27Os	; map Alt-4
set key \2428	\27Ot	; map Alt-5
set key \2429	\27Ou	; map Alt-6
set key \2430	\27Ov	; map Alt-7
set key \2431	\27Ow	; map Alt-8
set key \2432	\27Ox	; map Alt-9
set key \2433	\27Oy	; map Alt-0

; Other keys on keyboard
set key \271	\9		; Tab = ctrl-i
set key \4399	/		; keypad / sends /
set key \311	*		; keypad * sends *
set key \4365	\13\10		; make keypad enter send enter
set key \1795	\Knull		; send Ctrl-@ for emacs
;set key \1421			; ctrl-keypad up arrow
;set key \1425			; ctrl-keypad down arrow
;set key \1395			; ctrl-keypad left arrow
;set key \1396			; ctrl-keypad right arrow
;set key	\5491	\Kkp1	; Ctrl-left arrow, word left
;set key	\5492	\Kkp3	; Ctrl-right arrow, word right
;set key	\5517	\27[	; Ctrl-up arrow, paragraph up
;set key	\5521	\27]	; Ctrl-down arrow, paragraph down