keyboard(7) DEVICES AND MODULES keyboard(7)
NAME
keyboard - NEWS keyboard device interface
SYNOPSIS
/dev/keyboard
DESCRIPTION
Keyboard is the keyboard device interface on NEWS.
The following keymaps can be used in NEWS-OS Release 5.0.
Japanese
Japanese_o (OYAYUBI-shift keyboard NWP410)
U.S.English
German
French
U.K.English
Italian
Spanish
Swedish
Finnish (keymap is the same as that of `Swedish')
Danish
Norwegian
Portuguese
For details on each keymap, refer to NWM-660 "NEWS-OS
Release 5.0 User's Guide".
There are 3 methods to change the keymap for the appropriate
keyboard.
1. Modify the `options' line in the configuration file as
shown below when you reconfigure the system.
options KEYMAP_JAPANESE
The selectable keymaps are;
for Japanese : KEYMAP_JAPANESE
for Japanese_o : KEYMAP_JAPANESE_O
for German : KEYMAP_GERMAN
for French : KEYMAP_FRENCH
for U.K.English : KEYMAP_UK
for Italian : KEYMAP_ITALIAN
for Spanish : KEYMAP_SPANISH
for Swedish/Finnish : KEYMAP_SWEDISH_FINNISH
for Danish : KEYMAP_DANISH
for Norwegian : KEYMAP_NORWEGIAN
for Portuguese : KEYMAP_PORTUGUESE
for U.S.English : KEYMAP_US
2. Modify the keymapping table of a vmunix by using
Sony NEWS Distribution 1
keyboard(7) DEVICES AND MODULES keyboard(7)
setkbmap(8) command.
3. Modify the keymap directly by using chkbmap(1) command.
IOCTL SYSTEM CALL
KBIOCGETCNUM
Gets the current keymap.
#include <sys/ioctl.h>
#include <newsiop/keyboard.h>
int ctry_num;
ioctl(fd, KBIOCGETCNUM, &ctry_num);
Sony NEWS Distribution 2
keyboard(7) DEVICES AND MODULES keyboard(7)
ctry_num keymap define
------------------------------------------------------
0 Japanese K_JAPANESE_J
1 Japanese_o K_JAPANESE_K
2 German K_GERMAN
3 French K_FRENCH
4 U.K.English K_UKENGLISH
5 Italian K_ITALIAN
6 Spanish K_SPANISH
7 Swedish/Finnish K_SWEDISH_FINNISH
8 Danish K_DANISH
9 Norwegian K_NORWEGIAN
10 Portuguese K_PORTUGUESE
11 U.S.English K_USENGLISH
KBIOCSETLOCK
Changes the lock type for the Caps mode of NWP-411(A)
and for the upper case mode of NWP-410.
The Caps mode of NWP-411(A) uses the type of Caps-lock,
and the upper case mode of NWP-410 uses the type of
Shift-lock(1).
#include <sys/ioctl.h>
#include <newsiop/keyboard.h>
int lock_type;
ioctl(fd, KBIOCSETLOCK, &lock_type);
character number/symbol
lock type lock_type normal shift normal shift
----------------------------------------------------------------
Caps-lock CAPSLOCK = 0 A A 1 !
Shift-lock(1) SHIFTLOCK = 1 A a 1 !
Shift-lock(2) SHIFTLOCK2 = 2 A a ! 1
KBIOCREPT
Sets for the Auto Repeat mode.
The Auto Repeat mode is set as the default.
#include <sys/ioctl.h>
#include <newsiop/keyboard.h>
ioctl(fd, KBIOCREPT);
KBIOCNRPT
Cancels the Auto Repeat mode.
Sony NEWS Distribution 3
keyboard(7) DEVICES AND MODULES keyboard(7)
#include <sys/ioctl.h>
#include <newsiop/keyboard.h>
ioctl(fd, KBIOCNRPT);
LIMITATIONS
The ROM monitor does not support the keymap without
U.S.English.
If the keytop is changed by NWA-054/NWA-054LT, the key input
should be typed referring the NWP-411 keytop layout.
FILES
/dev/keyboard
SEE ALSO
setkbmap(8), chkbmap(1)
Sony NEWS Distribution 4