KEYBOARD(4) — NEWS-OS Programmer’s Manual
NAME
keyboard − NEWS keyboard device interface
SYNOPSIS
kb0 at iop addr ffe400 intr 36
/dev/keyboard
DESCRIPTION
Keyboard is the keyboard device interface on NEWS.
The following keymaps can be used in NEWS-OS Release 4.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 4.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.
optionsKEYMAP_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 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);
ctry_numkeymapdefine
-------------------------------------------------------------------------------
0JapaneseK_JAPANESE_J
1Japanese_oK_JAPANESE_K
2GermanK_GERMAN
3FrenchK_FRENCH
4U.K.EnglishK_UKENGLISH
5ItalianK_ITALIAN
6SpanishK_SPANISH
7Swedish/FinnishK_SWEDISH_FINNISH
8DanishK_DANISH
9NorwegianK_NORWEGIAN
10PortugueseK_PORTUGUESE
11U.S.EnglishK_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);
characternumber/symbol
lock typelock_typenormalshiftnormalshift
----------------------------------------------------------------------------------------------------------
Caps-lockCAPSLOCK = 0AA1!
Shift-lock(1)SHIFTLOCK = 1Aa1!
Shift-lock(2)SHIFTLOCK2 = 2Aa!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.
#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
NEWS-OSRelease 4.1C