View previous topic :: View next topic |
Author |
Message |
Sipos Tux's lil' helper
Joined: 10 Sep 2004 Posts: 121 Location: London
|
Posted: Sat Jan 09, 2010 8:36 pm Post subject: Euro key on console |
|
|
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 |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sun Jan 10, 2010 2:49 am Post subject: |
|
|
Here's one way: Code: | ~ $ alias eu="echo $'\342\202\254'"
~ $ eu
€ |
|
|
Back to top |
|
|
Sipos Tux's lil' helper
Joined: 10 Sep 2004 Posts: 121 Location: London
|
Posted: Sun Jan 10, 2010 1:39 pm Post subject: |
|
|
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 |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sun Jan 10, 2010 2:20 pm Post subject: |
|
|
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
Pressing the right win_key, then 'e' should produce '€'
Pressing the right win_key again, should bring you back to 'e' |
|
Back to top |
|
|
Sipos Tux's lil' helper
Joined: 10 Sep 2004 Posts: 121 Location: London
|
Posted: Sun Jan 10, 2010 2:29 pm Post subject: |
|
|
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 |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sun Jan 10, 2010 3:08 pm Post subject: |
|
|
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 |
|
|
|