[comp.windows.x] kbd_mode

meo@stiatl.UUCP (Miles O'Neal) (01/12/90)

(Gary Bisaga  x4219) writes:
|Use 'kbd_mode -a' command.  Keyboard is set up to return internal key codes
|(similar to the IBM PC's scan codes) so that X can pick up, for example,
|shift keys separately (both presses and releases).

It is usually best to invoke xinit from a script, followed
by this (unless you ran xinit in background), so that as
soon as the server goes away (intentionally or otherwise)
your keyboard is restored.

For already hosed keyboards, go to another terminal, login,
and type

kbd_mode -a </dev/console >& /dev/console  # in csh

or

kbd_mode -a < /dev/console >/dev/console 2>&1  # in sh


-Miles O'Neal
{yr fave backbone here}!emory!stiatl!meo

brsmith@umn-cs.CS.UMN.EDU (Brian R. Smith) (01/13/90)

meo@stiatl.UUCP (Miles O'Neal) writes:

>(Gary Bisaga  x4219) writes:
>For already hosed keyboards, go to another terminal, login,
>and type

>kbd_mode -a </dev/console >& /dev/console  # in csh

All you need is:

kbd_mode -a

It directly opens /dev/kbd, so it doesn' MATTER where the output
goes or the input comes from.

Brian