minix/drivers/tty/keymaps/russian-cp1251.src
Ben Gras 7120f34ec1 drop <minix/termios.h>, use clean <sys/termios.h>
. also implement some netbsd-style tty ioctls
	. also implement SIGINFO
	. also import netbsd stty
	. rename keymap minix CMIN (for ctrl+minus on numeric keypad)
	  to CNMIN; to keep unchanged control character default CMIN in
	  new <sys/ttydefaults.h>
	. convert CS[5678] logic in rs232 driver to explicit setting of LC
	  bits

Change-Id: I9b7d2963fe9aec00fb6e7535ef565b3191fc1c1d
2014-03-02 12:28:20 +01:00

113 lines
7.1 KiB
Text
Executable file

/*
* Keymap for russian keyboard.
* Modified by Roman V. Ignatov <ignatov@minix3.ru>
* Charset: cp1251
*/
/* scan-code !Shift Shift Alt1 Alt2 Alt+Sh Ctrl */
/* ==================================================================== */
K(A) = { L('a'), 'A', A(244), A('a'), A(212), C('A') },
K(B) = { L('b'), 'B', A(232), A('b'), A(200), C('B') },
K(C) = { L('c'), 'C', A(241), A('c'), A(209), C('C') },
K(D) = { L('d'), 'D', A(226), A('d'), A(194), C('D') },
K(E) = { L('e'), 'E', A(243), A('e'), A(211), C('E') },
K(F) = { L('f'), 'F', A(224), A('f'), A(192), C('F') },
K(G) = { L('g'), 'G', A(239), A('g'), A(207), C('G') },
K(H) = { L('h'), 'H', A(240), A('h'), A(208), C('H') },
K(I) = { L('i'), 'I', A(248), A('i'), A(216), C('I') },
K(J) = { L('j'), 'J', A(238), A('j'), A(206), C('J') },
K(K) = { L('k'), 'K', A(235), A('k'), A(203), C('K') },
K(L) = { L('l'), 'L', A(228), A('l'), A(196), C('L') },
K(M) = { L('m'), 'M', A(252), A('m'), A(220), C('M') },
K(N) = { L('n'), 'N', A(242), A('n'), A(210), C('N') },
K(O) = { L('o'), 'O', A(249), A('o'), A(217), C('O') },
K(P) = { L('p'), 'P', A(231), A('p'), A(199), C('P') },
K(Q) = { L('q'), 'Q', A(233), A('q'), A(201), C('Q') },
K(R) = { L('r'), 'R', A(234), A('r'), A(202), C('R') },
K(S) = { L('s'), 'S', A(251), A('s'), A(219), C('S') },
K(T) = { L('t'), 'T', A(229), A('t'), A(197), C('T') },
K(U) = { L('u'), 'U', A(227), A('u'), A(195), C('U') },
K(V) = { L('v'), 'V', A(236), A('v'), A(204), C('V') },
K(W) = { L('w'), 'W', A(246), A('w'), A(214), C('W') },
K(X) = { L('x'), 'X', A(247), A('x'), A(215), C('X') },
K(Y) = { L('y'), 'Y', A(237), A('y'), A(205), C('Y') },
K(Z) = { L('z'), 'Z', A(255), A('z'), A(223), C('Z') },
K(1) = { '1', '!', A('1'), A('1'), A('!'), C('A') },
K(2) = { '2', '@', A('2'), A('2'), A('@'), C('@') },
K(3) = { '3', '#', A('3'), A('3'), A('#'), C('C') },
K(4) = { '4', '$', A('4'), A('4'), A('$'), C('D') },
K(5) = { '5', '%', A('5'), A('5'), A('%'), C('E') },
K(6) = { '6', '^', A('6'), A('6'), A('^'), C('^') },
K(7) = { '7', '&', A('7'), A('7'), A('&'), C('G') },
K(8) = { '8', '*', A('8'), A('8'), A('*'), C('H') },
K(9) = { '9', '(', A('9'), A('9'), A('('), C('I') },
K(0) = { '0', ')', A('0'), A('0'), A(')'), C('@') },
K(ENTER) = { C('M'), C('M'), CA('M'),CA('M'),CA('M'),C('J') },
K(ESCAPE) = { C('['), C('['), CA('['),CA('['),CA('['),C('[') },
K(BACKSPACE) = { C('H'), C('H'), CA('H'),CA('H'),CA('H'),DEL },
K(TAB) = { C('I'), C('I'), CA('I'),CA('I'),CA('I'),C('I') },
K(SPACEBAR) = { ' ', ' ', A(' '), A(' '), A(' '), C('@') },
K(DASH) = { '-', '_', A('-'), A('-'), A('_'), C('_') },
K(EQUAL) = { '=', '+', A('='), A('='), A('+'), C('@') },
K(OPEN_BRACKET) = { '[', '{', A(245), A('['), A(213), C('[') },
K(CLOSE_BRACKET) = { ']', '}', A(250), A(']'), A(218), C(']') },
K(BACKSLASH) = { '\\', '|', A('\\'),A('\\'),A('|'), C('\\') },
K(SEMICOLON) = { ';', ':', A(230), A(';'), A(198), C('@') },
K(APOSTROPH) = { '\'', '"', A(253), A('\''),A(221), C('@') },
K(GRAVE_ACCENT) = { '`', '~', A('`'), A('`'), A('~'), C('@') },
K(COMMA) = { ',', '<', A(225), A(','), A(193), C('@') },
K(PERIOD) = { '.', '>', A(254), A('.'), A(222), C('@') },
K(SLASH) = { '/', '?', A(46), A('/'), A(44), C('@') },
K(CAPS_LOCK) = { CALOCK, CALOCK, CALOCK, CALOCK, CALOCK, CALOCK },
K(F1) = { F1, SF1, AF1, AF1, ASF1, CF1 },
K(F2) = { F2, SF2, AF2, AF2, ASF2, CF2 },
K(F3) = { F3, SF3, AF3, AF3, ASF3, CF3 },
K(F4) = { F4, SF4, AF4, AF4, ASF4, CF4 },
K(F5) = { F5, SF5, AF5, AF5, ASF5, CF5 },
K(F6) = { F6, SF6, AF6, AF6, ASF6, CF6 },
K(F7) = { F7, SF7, AF7, AF7, ASF7, CF7 },
K(F8) = { F8, SF8, AF8, AF8, ASF8, CF8 },
K(F9) = { F9, SF9, AF9, AF9, ASF9, CF9 },
K(F10) = { F10, SF10, AF10, AF10, ASF10, CF10 },
K(F11) = { F11, SF11, AF11, AF11, ASF11, CF11 },
K(F12) = { F12, SF12, AF12, AF12, ASF12, CF12 },
K(SCROLL_LOCK) = { SLOCK, SLOCK, SLOCK, SLOCK, SLOCK, SLOCK },
K(INSERT) = { INSRT, INSRT, AINSRT, AINSRT, AINSRT, CINSRT },
K(HOME) = { HOME, HOME, AHOME, AHOME, AHOME, CHOME },
K(PAGE_UP) = { PGUP, PGUP, APGUP, APGUP, APGUP, CPGUP },
K(DELETE) = { DEL, DEL, A(DEL), A(DEL), A(DEL), DEL },
K(END) = { END, END, AEND, AEND, AEND, CEND },
K(PAGE_DOWN) = { PGDN, PGDN, APGDN, APGDN, APGDN, CPGDN },
K(RIGHT_ARROW) = { RIGHT, RIGHT, ARIGHT, ARIGHT, ARIGHT, CRIGHT },
K(LEFT_ARROW) = { LEFT, LEFT, ALEFT, ALEFT, ALEFT, CLEFT },
K(DOWN_ARROW) = { DOWN, DOWN, ADOWN, ADOWN, ADOWN, CDOWN },
K(UP_ARROW) = { UP, UP, AUP, AUP, AUP, CUP },
K(NUM_LOCK) = { NLOCK, NLOCK, NLOCK, NLOCK, NLOCK, NLOCK },
K(KP_SLASH) = { '/', '/', A('/'), A('/'), A('/'), C('@') },
K(KP_STAR) = { '*', '*', A('*'), A('*'), A('*'), C('@') },
K(KP_DASH) = { '-', '-', AMIN, AMIN, A('-'), CNMIN },
K(KP_PLUS) = { '+', '+', APLUS, APLUS, A('+'), CPLUS },
K(KP_ENTER) = { C('M'), C('M'), CA('M'),CA('M'),CA('M'),C('J') },
K(KP_1) = { NEND, '1', AEND, AEND, A('1'), CEND },
K(KP_2) = { NDOWN, '2', ADOWN, ADOWN, A('2'), CDOWN },
K(KP_3) = { NPGDN, '3', APGDN, APGDN, A('3'), CPGDN },
K(KP_4) = { NLEFT, '4', ALEFT, ALEFT, A('4'), CLEFT },
K(KP_5) = { NMID, '5', AMID, AMID, A('5'), CMID },
K(KP_6) = { NRIGHT, '6', ARIGHT, ARIGHT, A('6'), CRIGHT },
K(KP_7) = { NHOME, '7', AHOME, AHOME, A('7'), CHOME },
K(KP_8) = { NUP, '8', AUP, AUP, A('8'), CUP },
K(KP_9) = { NPGUP, '9', APGUP, APGUP, A('9'), CPGUP },
K(KP_0) = { NINSRT, '0', AINSRT, AINSRT, A('0'), CINSRT },
K(KP_PERIOD) = { NDEL, '.', A(DEL), A(DEL), A('.'), DEL },
K(EUROPE_2) = { '<', '>', A('<'), A('|'), A('>'), C('@') },
K(APPLICATION) = { C('M'), C('M'), CA('M'),CA('M'),CA('M'),C('J') },
K(SYSREQ) = { C('M'), C('M'), CA('M'),CA('M'),CA('M'),C('J') },
K(LEFT_CTRL) = { LCTRL, LCTRL, LCTRL, LCTRL, LCTRL, LCTRL },
K(LEFT_SHIFT) = { LSHIFT, LSHIFT, LSHIFT, LSHIFT, LSHIFT, LSHIFT },
K(LEFT_ALT) = { LALT, LALT, LALT, LALT, LALT, LALT },
K(LEFT_GUI) = { LEFT, '<', ALEFT, ALEFT, A('<'), CLEFT },
K(RIGHT_CTRL) = { RCTRL, RCTRL, RCTRL, RCTRL, RCTRL, RCTRL },
K(RIGHT_SHIFT) = { RSHIFT, RSHIFT, RSHIFT, RSHIFT, RSHIFT, RSHIFT },
K(RIGHT_ALT) = { RALT, RALT, RALT, RALT, RALT, RALT },
K(RIGHT_GUI) = { RIGHT, '>', ARIGHT, ARIGHT, A('>'), CRIGHT }