Hello,

On 2006/12/25, at 4:09, Alberto Cortés wrote:


- kbmap: adding a kbmap question at the installation process will
  be nice; a kbmap variable in plan9.ini?... I used this on my
  termrc (based on /sys/src/cmd/kbmap.c):

    def_kbmap=/sys/lib/kbmap/ascii
    my_kbmap=/sys/lib/kbmap/es
    if (test (-w /dev/kbmap) -a (-r $def_kbmap) -a (-r $my_kbmap)) {
        cat $def_kbmap > /dev/kbmap
        cat $my_kbmap > /dev/kbmap
    }
....

Something like below will work, but I haven't try yet.
In plan9.ini, add a line
        keyboard=es
And in termrc, add lines
        if(~ $keyboard ?*){
                cat /sys/lib/kbmap/$keyboard > /dev/kbmap
        }

Bind operation might be required before cat.
        bind -a '#κ' /dev
where 'κ' is kapper.

Kenji Arisawa


Reply via email to