Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

using '\' instead of 'ß', for don't break the current code

fix the Germany layout ASCII code
  • Loading branch information...
commit 1fd2f716ca40f00d586e6880fea6387589c17801 1 parent 6d0bcdd
Xiangfu Liu authored
Showing with 13 additions and 9 deletions.
  1. +13 −9 lib/keymap.c
View
22 lib/keymap.c
@@ -21,11 +21,15 @@
#define ESC 27
#define TAB 11
#define LF 10
-#define UE 252 /* 'ü' */
-#define AE 228 /* 'ä' */
-#define OE 252 /* 'o' */
-#define PAR 167 /* '§' */
-#define DEG 176 /* '°' */
+
+#define DEG 167 /* '°' */
+#define PAR 21 /* '§' */
+#define ET 225 /* 'ß' */
+#define UE 129 /* 'ü' */
+#define OE 148 /* 'ö' */
+#define AE 132 /* 'ä' */
+#define MU 230 /* 'µ' */
+#define DI 246 /* '÷' */
static int curr_layout = 2;
@@ -40,13 +44,13 @@ static char keymap[3][128] = {
}, /* US layout */
{0
}, /* French layout */
- { 0,ESC,'1','2','3','4','5','6','7','8','9','0','-', '=',BS,TAB,
+ { 0,ESC,'1','2','3','4','5','6','7','8','9','0','\\', 0,BS,TAB,
'q','w','e','r','t','z','u','i','o','p', UE,'+', LF, 0,'a','s',
'd','f','g','h','j','k','l',OE, AE,'^', 0,'#','y','x','c','v',
'b','n','m',',','.','-', 0,'*', 0,' ', 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0,'7','8','9','-','4','5','6','+','1',
'2','3','0',',', 0, 0,'<', 0, 0, 0, 0, 0, 0, 0, 0, 0,
- LF, 0,'/', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ LF, 0, DI, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
} /* German layout */
};
@@ -59,10 +63,10 @@ static char shift[3][128] = {
}, /* US layout */
{0
}, /* French layout */
- {' ', 0 , 0 , 39, 0 , 0 , 0 , 0 , 0 , 0 , 0 ,'*',';','_',':', 0 ,
+ {' ', 0 , 0 ,39, 0 , 0 , 0 , 0 , 0 , 0 , 0 ,'*',';','_',':', 0 ,
'=','!','"',PAR,'$','%','&','/','(',')', 0 , 0 ,'>', 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
- 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,DEG, 0 ,
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,'?', 0 ,DEG, 0 ,
} /* German layout */
};
Please sign in to comment.
Something went wrong with that request. Please try again.