Subject: port-i386/2265: incorrect key sequence for - in i386 pccons driver keyboard map
To: None <gnats-bugs@NetBSD.ORG>
From: None <woods@mail.weird.com>
List: netbsd-bugs
Date: 03/26/1996 11:48:45
>Number:         2265
>Category:       port-i386
>Synopsis:       incorrect key sequence for <Shift>-<Tab> in i386 pccons driver keyboard map
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 26 12:20:01 1996
>Last-Modified:
>Originator:     Greg A. Woods
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Release:        NetBSD-current 1.1b sup Fri Mar 22 07:37:15 EST 1996
>Environment:

System: NetBSD box1_s 1.1B NetBSD 1.1B (HMPG_S) #6: Tue Mar 26 10:19:46 EST 1996     woods@box1_s:/usr/src/sys/arch/i386/compile/HMPG_S i386

>Description:

	The key mapping for the key sequence <Shift>-<Tab> of "\177\t"
	in the i386 pccons driver is non standard, essentially useless,
	and potentially dangerous.

	The current mapping is not useful as the "bt" string for termcap
	definitions.

	Users who use '^?' as their termio interrupt key value, the
	result of pressing <Shift>-<Tab> will be highly un-expected.

	A better choice would be to map it to '^Z', which is common to
	many ANSI and ISO-8859-1 terminals (eg. AT&T MT-705).

>How-To-Repeat:
	
	by examination of /usr/src/sys/arch/i386/isa/pccons.c and by
	trying to make sense of what happens when you type <Shift>-<Tab>

>Fix:

	Apply the following page, relative to /usr/src:

	Note this patch does NOT include my recommended change to the
	mapping of the "backspace" key, and care should be taken to
	merge these patches.

	Note further that the non-existant pccons(4) manual page should
	also be updated, as well as the pc3 termcap entry to take
	advantage of this change.  Those changes are left as an
	excercise to the maintainer (sorry!).

*** sys/arch/i386/isa/pccons.c-ORIG	Mon Mar 25 20:08:32 1996
--- sys/arch/i386/isa/pccons.c	Tue Mar 26 10:21:54 1996
***************
*** 1295,1301 ****
  	ASCII,	"-",		"_",		"\037",		/* 12 - */
  	ASCII,	"=",		"+",		"+",		/* 13 = */
  	ASCII,	"\177",		"\177",		"\010",		/* 14 backspace */
! 	ASCII,	"\t",		"\177\t",	"\t",		/* 15 tab */
  	ASCII,	"q",		"Q",		"\021",		/* 16 q */
  	ASCII,	"w",		"W",		"\027",		/* 17 w */
  	ASCII,	"e",		"E",		"\005",		/* 18 e */
--- 1295,1301 ----
  	ASCII,	"-",		"_",		"\037",		/* 12 - */
  	ASCII,	"=",		"+",		"+",		/* 13 = */
  	ASCII,	"\177",		"\177",		"\010",		/* 14 backspace */
! 	ASCII,	"\t",		"\032",		"\t",		/* 15 tab */
  	ASCII,	"q",		"Q",		"\021",		/* 16 q */
  	ASCII,	"w",		"W",		"\027",		/* 17 w */
  	ASCII,	"e",		"E",		"\005",		/* 18 e */
>Audit-Trail:
>Unformatted: