*BSD News Article 9535


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA5935 ; Fri, 01 Jan 93 22:06:53 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!pipex!bnr.co.uk!uknet!axion!rtf.bt.co.uk!duplain
From: duplain@rtf.bt.co.uk (Andy Duplain)
Newsgroups: comp.unix.bsd
Subject: [386BSD] patch for UK keyboard
Message-ID: <1993Jan4.123503.22901@rtf.bt.co.uk>
Date: 4 Jan 93 12:35:03 GMT
Organization: BT Customer Systems, Brighton, UK
Lines: 68


	Here is a patch to /sys/i386/isa/pccons.c to produce the correct
	keys for a UK keyboard.

*** pccons.c.ORIG	Sat Jan  4 11:53:20 1992
--- pccons.c	Mon Jan  4 12:22:44 1993
***************
*** 1153,1159 ****
  	NONE,	"",		"",		"",		/* 0 unused */
  	ASCII,	"\033",		"\033",		"\033",		/* 1 ESCape */
  	ASCII,	"1",		"!",		"!",		/* 2 1 */
! 	ASCII,	"2",		"@",		"\000",		/* 3 2 */
  	ASCII,	"3",		"#",		"#",		/* 4 3 */
  	ASCII,	"4",		"$",		"$",		/* 5 4 */
  	ASCII,	"5",		"%",		"%",		/* 6 5 */
--- 1153,1159 ----
  	NONE,	"",		"",		"",		/* 0 unused */
  	ASCII,	"\033",		"\033",		"\033",		/* 1 ESCape */
  	ASCII,	"1",		"!",		"!",		/* 2 1 */
! 	ASCII,	"2",		"\"",		"\000",		/* 3 2 */
  	ASCII,	"3",		"#",		"#",		/* 4 3 */
  	ASCII,	"4",		"$",		"$",		/* 5 4 */
  	ASCII,	"5",		"%",		"%",		/* 6 5 */
***************
*** 1190,1199 ****
  	ASCII,	"k",		"K",		"\013",		/* 37 k */
  	ASCII,	"l",		"L",		"\014",		/* 38 l */
  	ASCII,	";",		":",		";",		/* 39 ; */
! 	ASCII,	"'",		"\"",		"'",		/* 40 ' */
! 	ASCII,	"`",		"~",		"`",		/* 41 ` */
  	SHIFT,	"",		"",		"",		/* 42 shift */
! 	ASCII,	"\\",		"|",		"\034",		/* 43 \ */
  	ASCII,	"z",		"Z",		"\032",		/* 44 z */
  	ASCII,	"x",		"X",		"\030",		/* 45 x */
  	ASCII,	"c",		"C",		"\003",		/* 46 c */
--- 1190,1199 ----
  	ASCII,	"k",		"K",		"\013",		/* 37 k */
  	ASCII,	"l",		"L",		"\014",		/* 38 l */
  	ASCII,	";",		":",		";",		/* 39 ; */
! 	ASCII,	"'",		"@",		"'",		/* 40 ' */
! 	ASCII,	"`",		"|",		"`",		/* 41 ` */
  	SHIFT,	"",		"",		"",		/* 42 shift */
! 	ASCII,	"#",		"~",		"#",		/* 43 \ */
  	ASCII,	"z",		"Z",		"\032",		/* 44 z */
  	ASCII,	"x",		"X",		"\030",		/* 45 x */
  	ASCII,	"c",		"C",		"\003",		/* 46 c */
***************
*** 1236,1242 ****
  	KP,	".",		"\177",		".",		/* 83 kp . */
  	NONE,	"",		"",		"",		/* 84 0 */
  	NONE,	"100",		"",		"",		/* 85 0 */
! 	NONE,	"101",		"",		"",		/* 86 0 */
  	FUNC,	"\033[W",	"\033[i",	"\033[u",	/* 87 f11 */
  	FUNC,	"\033[X",	"\033[j",	"\033[v",	/* 88 f12 */
  	NONE,	"102",		"",		"",		/* 89 0 */
--- 1236,1242 ----
  	KP,	".",		"\177",		".",		/* 83 kp . */
  	NONE,	"",		"",		"",		/* 84 0 */
  	NONE,	"100",		"",		"",		/* 85 0 */
! 	NONE, 	"\\",		"|",		"\\",		/* 86 \ */
  	FUNC,	"\033[W",	"\033[i",	"\033[u",	/* 87 f11 */
  	FUNC,	"\033[X",	"\033[j",	"\033[v",	/* 88 f12 */
  	NONE,	"102",		"",		"",		/* 89 0 */


-- 
Andy Duplain, BT Customer Systems, Brighton, UK.           duplain@rtf.bt.co.uk
#define	DISCLAIMER      My views and opinions are my own, and not my company's