Subject: kern/21430: Portuguese Keyboard Support on NetBSD
To: None <gnats-bugs@gnats.netbsd.org>
From: None <falso@rdk.homeip.net>
List: netbsd-bugs
Date: 05/02/2003 22:13:14
>Number: 21430
>Category: kern
>Synopsis: Portuguese Keyboard Support on NetBSD
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri May 02 22:14:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Pedro de Oliveira
>Release: 1.3.1
>Organization:
RdK
>Environment:
no need..
>Description:
Hello, i've found a way to get portuguese keyboard support on netbsd, and i think you should include this on the next version.
So.. what you have to do is this:
add this struct to /sys/dev/pckbc/wskbdmap_mfii.c
static const keysym_t pckbd_keydesc_pt[] = {
/* pos normal shifted altgr shift-altgr */
KC(3), KS_2, KS_quotedbl, KS_at,
KC(4), KS_3, KS_numbersign, KS_sterling,
KC(5), KS_4, KS_dollar,
KC(7), KS_6, KS_ampersand,
KC(8), KS_7, KS_slash, KS_braceleft,
KC(9), KS_8, KS_parenleft, KS_bracketleft,
KC(10), KS_9, KS_parenright, KS_bracketright,
KC(11), KS_0, KS_equal, KS_braceright,
KC(12), KS_apostrophe, KS_question,
KC(13), KS_less, KS_greater,
KC(26), KS_plus, KS_asterisk,
KC(27), KS_dead_acute, KS_dead_grave,
KC(39), KS_ccedilla, KS_Ccedilla,
KC(40), KS_masculine, KS_ordfeminine,
KC(41), KS_backslash, KS_bar,
KC(43), KS_dead_tilde, KS_dead_circumflex,
KC(51), KS_comma, KS_semicolon,
KC(52), KS_period, KS_colon,
KC(53), KS_minus, KS_underscore,
KC(86), KS_less, KS_greater,
KC(184), KS_Mode_switch, KS_Multi_key,
};
add this line:
KBD_MAP(KB_PT, KB_US, pckbd_keydesc_pt),
to the struct
const struct wscons_keydesc pckbd_keydesctab[]
and compile the kernel... and if we want to make the .pt keyboard the default we add this to the kernel config file:
# see dev/pckbc/wskbdmap_mfii.c for implemented layouts
options PCKBD_LAYOUT="(KB_PT)"
I hope this helps, cause i know a lot of portuguese netbsd users that are waiting for this feature for a long time.
Regards, Pedro de Oliveira
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: