From owner-freebsd-hackers Tue Apr 30 10:29:12 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA22793 for hackers-outgoing; Tue, 30 Apr 1996 10:29:12 -0700 (PDT) Received: from ermintrude.sunquest.com (ermintrude.Sunquest.COM [149.138.2.211]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id KAA22786 for ; Tue, 30 Apr 1996 10:29:06 -0700 (PDT) Received: from LOCALHOST (LOCALHOST [127.0.0.1]) by ermintrude.sunquest.com (8.7.5/8.6.12) with SMTP id KAA08037 for ; Tue, 30 Apr 1996 10:19:58 -0700 (MST) Message-Id: <199604301719.KAA08037@ermintrude.sunquest.com> X-Authentication-Warning: ermintrude.sunquest.com: Host LOCALHOST [127.0.0.1] didn't use HELO protocol X-Mailer: exmh version 1.6.5 12/11/95 To: hackers@freebsd.org Reply-To: tony@odin.sunquest.com X-Face: ZQe?G+$UQG8,i~KL=gy`T:c1bxG<{7ta&{,'$LiA !`"u>-"@wkx>yf.z_5 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Has anyone played with the BSDi ksh93 binary under FreeBSD ? It works really well, except in one odd regard. Using the KEYBD trap (for keymappings) isn't working correctly for multicharacter inputs. Assuming I'm trying to map '\E[A' (up arrow key) to 'k' (vi up line), the problem is that three seperate calls to the KEYBD trap occur, one for (escape), one for '[' and one for 'A', rather than just one call. Since the table is loaded as: keytable[$'\E[A']='k' and referenced in the trap handler by looking up the keystroke in keytable, this isn't working too well. The ksh manual makes note of the fact that the arguments to escape must follow within 1/2 sec, but I'd have expected this to be so since they are generated by a keysrtoke. Anyone have any ideas ? tony