On Mon, Dec 04, 2006 at 01:20:40PM +0100, Juan Solano wrote:
> Hi,
> 
> I have a thinkpad X24 with british keyboard running openbsd and my shell
> is ksh.
> 
> I am trying to get dead keys working for accents e.g. entering "'" + "a"
> to get "a" and it doesn't work. I don't have any LC* environment
> variable set, I can see accents in a text file when doing cat <file>.txt
> on the terminal (mlterm, xterm) or reading the files with an editor. 

Hopefully I comprehended what you are asking for:
You want to enter 'special' characters like d a?

Use xmodmap and Multi_key.
#----------------------- $HOME/.xmodmaprc -------------------------------------#
!keysym ISO_Level3_Shift = Multi_key
keysym Alt_R = Multi_key
if [ -r ~/.xmodmaprc ] ; then
        xmodmap ~/.xmodmaprc &
fi
#------------------------------------------------------------------------------#

To enter 'a' I hit <Alt_R> + ' + a = a

> These are the relevant configuration files:
> 
> /etc/wsconsctl.conf 
> .....
> keyboard.encoding=uk
> .....
> 
> /etc/X11/xorg.conf
> .....
> Section "InputDevice"
>       Identifier  "Keyboard0"
>       Driver      "keyboard"
>       Option      "XkbRules" "xorg"
>       Option      "XkbModel" "thinkpad"
>       Option      "XkbLayout" "gb"
>       Option      "XkbOptions" "eurosign:e,ctrl:swapcaps"
> EndSection

I use this snippet from xorg.conf on my thinkpad X40 (with german
keyboard), but as you see I'm using a "weird" keyboard layout :)

Section "InputDevice"
        Identifier  "Keyboard2"
        Driver      "kbd"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "dvorak"
EndSection

<snip>
> 
> I have references of people who got accents working in the terminal
> using bash, however will that propagate to other applications like text
> editors? if that is the case I would have to change to bash.
Only works in X, but is transparent to (X) applications.

> Any help appreciated,
> thanks,
> Juan.

Regrads,
ahb

Reply via email to