[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
keyboard and charsets
- To: OpenBSD <misc@openbsd.org>
- Subject: keyboard and charsets
- From: Horacio MG <homega@ciberia.es>
- Date: Thu, 2 Mar 2000 14:23:34 +0100
- Mail-Followup-To: OpenBSD <misc@openbsd.org>
Hello,
I'm trying to have the right keyboard layout and character set with 2.6.
I configured the following in /home/<user>/.profile (bash) and
/root/.profile (ksh):
/home/<user>/.profile:
----------------------
scon -o
kcon -m es
scon -b 10
LANGUAGE=es_ES
LC_ALL=es_ES
LANG=spanish
MM_CHARSET=ISO-8859-1
export LANGUAGE LC_ALL LANG MM_CHARSET
stty -istrip cs8
----------------
/root/.profile:
---------------
scon -o
kcon -m es
scon -b 10
set -o vi
lang=es_ES.ISO_8859-1
charset=ISO_8859-1
------------------
Both seem to work to an extent. The keys are fine except for the
special characters (ntilde, accents, cedilla...).
I had a look at /usr/share/misc/keycap.pcvt and found just one Spanish
mapping:
# from codrv, untested
es|spain|Spainish mapping:\
:K1=\272:S1=\252:A1=\\:\
:A2=|:S3=":A3=@:S4=:A4=#:S7=&:A7=\254:S8=/:S9=(:S10=):S11==:\
:K12=':S12=\077:p1#12:\
:K13=\277:S13=\241:\
:K27=`:S27=^:A27=[:p2#27:\
:K28=+:S28=*:A28=]:\
:K40=\361:S41=\321:\
:K41=/:S41=\250:A41={:p3#41:\
:K42=\347:S42=\307:A42=}:\
:K45=<:S45=>:\
:S53=;:S54=\072:\
:K55=-:S55=_:\
:K104=,:S104=,:\
:l1#62:a0:
which I guess is the one loaded by kcon -m es, and lacks the Spanish
special characters. Now, can I possibly remap this? how can I find the
keycode for each key on the keyboard (like with showkey) and the
possible values for each character so that I can remap the kbd?
Also, the following in /etc/rc:
if [ -f /sbin/kbd -a -f /etc/kbdtype ]; then
kbd `cat /etc/kbdtype`
fi
but this file doesn't exist??
Finally, is it correct to add the following to /etc/rc.local
echo -n ' scon'; /usr/sbin/scon -o
echo -n ' scon'; /usr/sbin/kcon -m es
instead of having them defined in the shell conf files?
TIA,
--
Horacio Anno MMDCCLIII aUC
homega@ciberia.es Valencia - ESPAŅA
--------------------------------------------------------------------
Key fingerprint = F4EE AE5E 2F01 0DB3 62F2 A9F4 AD31 7093 4233 7AE6