javeree Guru
Joined: 29 Jan 2006 Posts: 453
|
Posted: Thu May 22, 2008 9:03 pm Post subject: console understands unicode, backspace does not |
|
|
I have a framebuffer console, set for UNICODE
/etc/rc.conf
UNICODE=yes
/etc/conf.d/consolefont
CONSOLEFONT="lat9w-16"
/etc/conf.d/keymaps
KEYMAP="be-latin1"
SET_WINDOWKEYS="yes"
EXTENDED_KEYMAPS="keypad euro2"
DUMPKEYS_CHARSET="iso-8859-15"
I can type and erase using backspace any 'standard' character without problems.
When typing alt-e, I get a eurosign on the console. The problem begins when I want to erase the euro-sign. example. I've typed ls{euro} and do one backspace. After that pressing enter should give the current directory listing. Instead I get -bash ls?: command unknown.
If I type ls{euro} and then do three backspaces, there is nothing visible behind the prompt, but pressing enter executes ls.
If I type as first character after the prompt {euro}, I can even backspace deleting parts of my prompt.
I guess the euro is encoded as three characters that backspace wants to delete one by one. I dont think this should be the correct behaviour. If the console is unicode aware, it should interprete backspace as 'delete one character', not as 'delete one byte'. Most probably I've just got somewhere a setting wrong, but I don't know where to look. Suggestions anyone ?
P.s. although the eurosign works on the console, in vi pressing alt-e brings up three characters. Is vi not utf-8 aware ? |
|