Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Euro key on console
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
Sipos
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2004
Posts: 121
Location: London

PostPosted: Sat Jan 09, 2010 8:36 pm    Post subject: Euro key on console Reply with quote

I'm trying to get the euro symbol on the console (outside X). My keyboard is a UK keyboard with the euro symbol on the 4 key. If I press Ctrl-Alt-4 nothing happens. My console font is set to lat9w-16 (following advice here) in /etc/conf.d/consolefont. My keymap is set to uk in /etc/conf.d/keymaps. Both are in the boot runlevel. I've tried setting EXTENDED_KEYMAPS="euro" in /etc/conf.d/keymaps but it makes no difference.

Anybody have any ideas?
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sun Jan 10, 2010 2:49 am    Post subject: Reply with quote

Here's one way:
Code:
~ $ alias eu="echo $'\342\202\254'"
~ $ eu
Back to top
View user's profile Send private message
Sipos
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2004
Posts: 121
Location: London

PostPosted: Sun Jan 10, 2010 1:39 pm    Post subject: Reply with quote

Thanks.

I was hoping to be able to type it directly (into editors for example). I know this is possible because I can do it on another machine. Unfortunately, I can't see the problem with my settings. I can do this in windows on the same machine but I guess it is possible the keyboard works differently.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sun Jan 10, 2010 2:20 pm    Post subject: Reply with quote

You could do something like this:
Code:
 ~ $ cat .Xmodmap
clear Mod1
keycode 134 = ISO_Next_Group
add mod1 = ISO_Next_Group
keycode 26 = e E EuroSign


and run
Code:
xmodmap ~/.Xmodmap


Pressing the right win_key, then 'e' should produce '€'
Pressing the right win_key again, should bring you back to 'e'
Back to top
View user's profile Send private message
Sipos
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2004
Posts: 121
Location: London

PostPosted: Sun Jan 10, 2010 2:29 pm    Post subject: Reply with quote

I guess this only applies in X right?

I am trying to get this to work outside of X at the moment (although this could be very useful if I encounter the same trouble getting it to work in X too).
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sun Jan 10, 2010 3:08 pm    Post subject: Reply with quote

There is something about that in the Using UTF-8 with Gentoo guide, down toward the end of the page, but I never tried it.
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