LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   FreeBSD 5.4: Keyboard problems in console (https://www.linuxquestions.org/questions/%2Absd-17/freebsd-5-4-keyboard-problems-in-console-431294/)

Ephracis 04-03-2006 06:56 AM

FreeBSD 5.4: Keyboard problems in console
 
I am using FreeBSD 5.4 and I am having problems with some characters in the console. I sshing my bsd box from my own computer and whenever I try to use any of the swedish characters (åäö) or some other keys (like delete, §, ½, £ or €) I get strange result or no result at all. For example when I am using vi and try to type the swedish character å I end up with \xe5 instead.

How can I fix this? It is working fine in Debian Etch but does FreeBSD support foreign characters? The keyboard layout is fine, it's just that some characters won't work properly. This is all console - bash, no X installed.

Thanks,

primo 04-20-2006 01:32 AM

Save the following /etc files to try this solution:
Code:

echo 'keymap="swedish.iso.acc"' >>/etc/rc.conf
sed -i .bak '/cons25/s/cons25/cons25l1/' /etc/ttys

Does swedish use ISO-8859-1 ?
The "l1" above corresponds to this.

Then add the following line
":charset=ISO-8859-1:\" somewhere after "default:" in /etc/login.conf and run "cap_mkdb /etc/login.conf"

To see the manpages in your language set and export the LC_ALL environment variable.


All times are GMT -5. The time now is 05:59 AM.