Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
console understands unicode, backspace does not
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 453

PostPosted: Thu May 22, 2008 9:03 pm    Post subject: console understands unicode, backspace does not Reply with quote

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 ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum