Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!ukc!reading!minster!pcc From: pcc@minster.york.ac.uk Newsgroups: comp.os.minix Subject: ST, and the British keyboard Message-ID: <613753348.2877@minster.york.ac.uk> Date: 13 Jun 89 15:02:28 GMT Organization: Department of Computer Science, University of York, England Lines: 105 following is a cdiff file for kernel/stkbd.c, it should save the user from having to use fixkeys.prg on a minix.img file. sadly this is only of any use to ST users with a british keyboard. have fun pete cooper -----------------------------cut----------------------------------------------- *** stkbd.c.dist Tue Jun 13 12:08:05 1989 --- stkbd.c Tue Jun 13 14:11:20 1989 *************** *** 76,81 **** --- 76,82 ---- * font tables used by MINIX-ST have only 128 entries. */ + #ifndef BRITISH /* Scan codes to ASCII for unshifted keys */ PUBLIC char keynorm[] = { /*00*/ 0,0x1B, '1', '2', '3', '4', '5', '6', *************** *** 135,140 **** --- 136,206 ---- /*70*/ '0', '.','\r', 0, 0, 0, 0, 0, /*78*/ 0, 0, 0, 0, 0, 0, 0, 0 }; + #endif + + + #ifdef BRITISH + /* Scan codes to ASCII for unshifted keys */ + PUBLIC char keynorm[] = { + /*00*/ 0,0x1B, '1', '2', '3', '4', '5', '6', + /*08*/ '7', '8', '9', '0', '-', '=','\b','\t', + /*10*/ 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', + /*18*/ 'o', 'p', '[', ']','\r', 0, 'a', 's', + /*20*/ 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', + /*28*/ '\'', '`', 0,'#', 'z', 'x', 'c', 'v', + /*30*/ 'b', 'n', 'm', ',', '.', '/', 0, 0, + /*38*/ 0, ' ', 0, 0, 0, 0, 0, 0, + /*40*/ 0, 0, 0, 0, 0, 0, 0, 0, + /*48*/ 0, 0, '-', 0, 0, 0, '+', 0, + /*50*/ 0, 0, 0,0x7F, 0, 0, 0, 0, + /*58*/ 0, 0, 0, 0, 0, 0, 0, 0, + /*60*/ '\\', 0, 0, '(', ')', '/', '*', '7', + /*68*/ '8', '9', '4', '5', '6', '1', '2', '3', + /*70*/ '0', '.','\r', 0, 0, 0, 0, 0, + /*78*/ 0, 0, 0, 0, 0, 0, 0, 0 + }; + + /* Scan codes to ASCII for shifted keys */ + PUBLIC char keyshft[] = { + /*00*/ 0,0x1B, '!', '"', '#', '$', '%', '^', + /*08*/ '&', '*', '(', ')', '_', '+','\b','\t', + /*10*/ 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', + /*18*/ 'O', 'P', '{', '}','\r', 0, 'A', 'S', + /*20*/ 'D', 'F', 'G', 'H', 'J', 'K', 'L', ':', + /*28*/ '@', '~', 0, '~', 'Z', 'X', 'C', 'V', + /*30*/ 'B', 'N', 'M', '<', '>', '?', 0, 0, + /*38*/ 0, ' ', 0, 0, 0, 0, 0, 0, + /*40*/ 0, 0, 0, 0, 0, 0, 0, '7', + /*48*/ '8', 0, '-', '4', 0, '6', '+', 0, + /*50*/ '2', 0, '0',0x7F, 0, 0, 0, 0, + /*58*/ 0, 0, 0, 0, 0, 0, 0, 0, + /*60*/ '|', 0, 0, '(', ')', '/', '*', '7', + /*68*/ '8', '9', '4', '5', '6', '1', '2', '3', + /*70*/ '0', '.','\r', 0, 0, 0, 0, 0, + /*78*/ 0, 0, 0, 0, 0, 0, 0, 0 + }; + + /* Scan codes to ASCII for capslocked keys */ + PUBLIC char keycaps[] = { + /*00*/ 0,0x1B, '1', '2', '3', '4', '5', '6', + /*08*/ '7', '8', '9', '0', '-', '=','\b','\t', + /*10*/ 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', + /*18*/ 'O', 'P', '[', ']','\r', 0, 'A', 'S', + /*20*/ 'D', 'F', 'G', 'H', 'J', 'K', 'L', ';', + /*28*/ '\'', '`', 0,'\\', 'Z', 'X', 'C', 'V', + /*30*/ 'B', 'N', 'M', ',', '.', '/', 0, 0, + /*38*/ 0, ' ', 0, 0, 0, 0, 0, 0, + /*40*/ 0, 0, 0, 0, 0, 0, 0, 0, + /*48*/ 0, 0, '-', 0, 0, 0, '+', 0, + /*50*/ 0, 0, 0,0x7F, 0, 0, 0, 0, + /*58*/ 0, 0, 0, 0, 0, 0, 0, 0, + /*60*/ 0, 0, '\\', '(', ')', '/', '*', '7', + /*68*/ '8', '9', '4', '5', '6', '1', '2', '3', + /*70*/ '0', '.','\r', 0, 0, 0, 0, 0, + /*78*/ 0, 0, 0, 0, 0, 0, 0, 0 + }; + + #endif /* * Flag for keypad mode ------------------------------------------------------------------------------- _ __ __ ' ) ) _/_ / ) /--' _ / _ __ / _________ _ __ /