NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: USB-keyboard with a non-standard layout in wscons



Thanks for Michael van Elst's answer.

On Sun, Jun 21, 2015 at 9:11 AM, Michael van Elst <mlelstv%serpens.de@localhost> wrote:
> hansdinsenhansen%gmail.com@localhost (Hans dinsen-hansen) writes:
>
>>I have 2 problems with a new USB-keyboard and wscons.  The system
>>is NetBSD 5.1.
>
>>  1) The backspase key gives ^H in stead of ^?.
>>   2) The Danish keyboard layout yields JKLÆØ| jklæø\
>>        in stead of standard JKLÆØ* jklæø'.
>
>>When I use an Xterm I get the standard Danish keyboard layout
>
>>The first problem is easily solved by means of "stty erase '^H'"
>>in the .login file.
>
> This should be set with the tset command which retrieves the
> key bindings from the termcap/terminfo database.
> But it appears that this is broken (and probably has been for
> a very long time).
I used tset, but as a Danish keyboard has the the symbols | and \
somewhere else,it would not solve problem 2, as far as I understand
the manuals for tset and termcap/terminfo.
>
>
>>Is there anything that I can do to wscons.conf to make the key in the
>>third row next to the enter-key Danish in stead of American?
>
> There are unfortunately many places where keyboard mapping is
> handled.
>
> For wscons you use the wsconsctl command.

That is probably the best way to do it.  I'm working at it.

> For X11 you use the xmodmap command.
> For modern X11 you can use the setxkbmap command.
>
>>Actually, I prefer wscons over Xterm as the characters are much
>>larger and thus
>>better for my waning sight.
>
> You can set xterm to use large fonts too. Ctrl+Right Mouse Button
> gives you a menu to select several sizes. ...

Thanks!  That is nice for someone with my handicap.  -  There is,
however, an other reason that I "love" wscons.   I started programming
Algol60 in 1965 when it was "Flexowriter" and papertape,  (my first
program ran in 1963).  I do not miss the noisy paper tape punchers,
but the graphich screens were a large step forward.  My first BSD
system was a BSD2 variant.  OK I am an old (hopefully not too
reactionary) chap.

>The -font option lets
> you chose the default font. And using X11 resources you can
> specify the other fonts in the menu.
>
> Modern xterm also supports scalable FreeType fonts with the -fa option.
> The menu then lets you chose the single font scaled to different sizes.
>
> Try    xterm -fa 'Luxi Mono:size=20'

I'll workwith that as soon as I get wscons to run.
>
>
>                                 Michael van Elst
> Internet: mlelstv%serpens.de@localhost
>                                 "A potential Snark may lurk in every tree."

I must work with a sig-file.  I) was considering:


Home | Main Index | Thread Index | Old Index