I believe that he is seemed this :
in keymap.c, add this:
CONST unsigned char key_map_br[] =
{
0, 27, '1', '2', '3', '4', '5', '6',
'7', '8', '9', '0', '-', '=', 127, 9,
'q', 'w', 'e', 'r', 't', 'y', 'u', 'i',
'o', 'p', DEAD_ACUTE, '[', 13, 0, 'a', 's',
'd', 'f', 'g', 'h', 'j', 'k', 'l', DEAD_CEDILLA, //ç
DEAD_TILDE, ']', 0, '\', 'z', 'x', 'c', 'v',
'b', 'n', 'm', ',', '.', ';', '/', '*',
0, 32, 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,
0};
CONST unsigned char shift_map_br[] =
{
0, 27, '!', '@', '#', '$', '%', '"',
'&', '', '(', ')', '_', '+', 127, 9,
'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I',
'O', 'P', DEAD_GRAVE, '{', 13, 0, 'A', 'S',
'D', 'F', 'G', 'H', 'J', 'K', 'L', DEAD_CEDILLA, //Ç
DEAD_CIRCUMFLEX, '}', '0', '|', 'Z', 'X', 'C', 'V',
'B', 'N', 'M', '<', '>', ':', '?', '',
0, 32, 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,
0};
CONST unsigned char alt_map_br[] =
{
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, 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, 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};
And in the function:
truct keytable_entry keytable_list[] = {
...
Add this:
{"br", KEYB_BR, 0, sizeof(key_map_br),
sizeof(num_table_comma),
key_map_br, shift_map_br, alt_map_br,
num_table_dot, dead_key_table,
dos850_dead_map},
...
in the keymap.h, add this:
Logged In: YES
user_id=501371
Hi, please provide the patch in a unidiff form, as an
attachment.
Copy/pasting makes no sense, really.
Thanks.
Logged In: YES
user_id=1194066
Hi guys
I've tried this patch, unsucessuful. Made some modifications
on it, and it compiled, but I've found no way to use the
keymap. layout="br" didn't worked.
Here is the unidiff:
diff -aur
dosemu-1.3.1/src/plugin/kbd_unicode/include/keymaps.h
dosemu-1.3.1-modified/src/plugin/kbd_unicode/include/keymaps.h
--- dosemu-1.3.1/src/plugin/kbd_unicode/include/keymaps.h
2004-01-16 18:50:32.000000000 -0200
+++
dosemu-1.3.1-modified/src/plugin/kbd_unicode/include/keymaps.h
2005-01-10 15:44:56.000000000 -0200
@@ -55,6 +55,7 @@
#define KEYB_AUTO 33
#define KEYB_RU 34
#define KEYB_TR 35
+#define KEYB_BR 36
#define CONST
#define KT_ALTERNATE 1
diff -aur dosemu-1.3.1/src/plugin/kbd_unicode/keymaps.c
dosemu-1.3.1-modified/src/plugin/kbd_unicode/keymaps.c
--- dosemu-1.3.1/src/plugin/kbd_unicode/keymaps.c 2004-01-18
14:48:00.000000000 -0200
+++ dosemu-1.3.1-modified/src/plugin/kbd_unicode/keymaps.c
2005-01-10 15:45:17.000000000 -0200
@@ -62,6 +62,60 @@
*/
+/ abnt2 keyboard
+ *
+ /
+
+CONST unsigned char key_map_br[] =
+{
+ U_VOID, 27, '1', '2', '3', '4', '5', '6',
+ '7', '8', '9', '0', '-', '=', 127, 9,
+ 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i',
+ 'o', 'p', KEY_DEAD_ACUTE, '[', 13, U_VOID, 'a', 's',
+ 'd', 'f', 'g', 'h', 'j', 'k', 'l', KEY_DEAD_CEDILLA, //
+ KEY_DEAD_TILDE, ']', U_VOID, '\', 'z', 'x', 'c', 'v',
+ 'b', 'n', 'm', ',', '.', ';', '/', '',
+ U_VOID, 32, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, '-', U_VOID, U_VOID, U_VOID, '+', U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, '<', U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID};
+
+CONST unsigned char shift_map_br[] =
+{
+ U_VOID, 27, '!', '@', '#', '$', '%', '"',
+ '&', '', '(', ')', '_', '+', 127, 9,
+ 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I',
+ 'O', 'P', KEY_DEAD_GRAVE, '{', 13, U_VOID, 'A', 'S',
+ 'D', 'F', 'G', 'H', 'J', 'K', 'L', KEY_DEAD_CEDILLA, //
+ KEY_DEAD_CIRCUMFLEX, '}', 'U_VOID', '|', 'Z', 'X', 'C', 'V',
+ 'B', 'N', 'M', '<', '>', ':', '?', '*',
+ U_VOID, 32, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, '-', U_VOID, U_VOID, U_VOID, '+', U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, '>', U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID};
+
+
+CONST unsigned char alt_map_br[] =
+{
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID, U_VOID,
U_VOID,
+ U_VOID};
+// abnt2 keyboard
+
CONST t_keysym key_map_finnish[] =
{
U_VOID, 27, '1', '2', '3', '4', '5', '6',
@@ -1988,6 +2042,8 @@
#define CT(X) (sizeof(X)/sizeof(X[0]))
struct keytable_entry keytable_list[] = {
+ {"br", KEYB_BR, 0, CT(key_map_br), CT(num_table_comma),
key_map_br,
+ shift_map_br, alt_map_br, num_table_dot,},
{"finnish", KEYB_FINNISH, 0, CT(key_map_finnish),
CT(num_table_comma),
key_map_finnish, shift_map_finnish, alt_map_finnish,
num_table_comma,},
Logged In: YES
user_id=1194066
Sorry, there's no way to attach the file. And we don't want
wrapped lines, don't we?
So, here is a uuencoded version of the file, gzip for
convenience
modifications.diff.gz
begin 644 -
M'XL("N5XT$"
VUO9&EF:6-A=&EO;G,N9&EF9@#ME]MVVE80AJ^MIY@X;60L M"1U
&),F0-.:
ANL7"=.EY:@FC&H2K0Q.'^CJ/D@?IBW7_$@)!3)<3-S=M M=/%I:S/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(HYCMCT_HC3V8:O3:1V_6$]@;K4A"R[^#[!F*V9266RE^:0; /B>>:('+[&XG#(MPL#@``
end
Logged In: YES
user_id=1194066
hi guys
I solved the problem by simply adding $_layout="keyb-user"
to the /etc/dosemu/dosemu.conf
Logged In: YES
user_id=501371
Hi.
Logged In: YES
user_id=1194066
Hello, there.
My problem is solved and I really don't know why.
For abnt2 keyboards, just put $_layout="keyb-user" in your
dosemu.conf.
Same dosemu version, 1.3.1. and no custom file under keymaps
directory.
If someone can explain-me why, thanks.
Logged In: YES
user_id=501371
OK, anrneto doesn't responding anyway, I think this
should be closed.
Logged In: YES
user_id=1312539
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).