Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ keyboard.4(4) — NEWS-os 3.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

KEYBOARD(4)  —  UNIX 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 from NEWS-OS Release 3.3. 

Japanese
German
French
U.K.English
Italian
Spanish
Swedish
Danish
Norwegian
Portuguese
Dutch

For details on each keymaps, refer to the "Release Note" of NEWS-OS Release 3.3.

There are 3 methods to change the keymap for the appropriate keyboard.  Modify the ‘options’ line in the configuration file as shown below when you reconfigure the system. 

optionsKEYMAP_JAPANESE

The selectable keymaps are;

for  Japanese/American: KEYMAP_JAPANESE
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  Dutch:KEYMAP_DUTCH

Modify the keymapping table of a vmunix by using chkey(S) command.  Modify the keymap directly by using chkeymap(S) command. 

IOCTL SYSTEM CALL

KBIOCGETCNUM
Gets the current keymap.

#include <sys/ioctl.h>
#include <newskbms/keyboard.h>
#include <newsiop/keyboard.h>
int ctry_num;
ioctl(fd, KBIOCGETCNUM, &ctry_num);
ctry_numkeymapdefine
 0Japanese/American K_JAPANESE
 2GermanK_GERMAN
 3FrenchK_FRENCH
 4U.K.EnglishK_UKENGLISH
 5ItalianK_ITALIAN
 6SpanishK_SPANISH
 7Swedish/FinnishK_SWEDISH_FINNISH
 8DanishK_DANISH
 9NorwegianK_NORWEGIAN
10PortugueseK_PORTUGUESE
11DutchK_DUTCH

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>
#include <newskbms/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 Japanese/American.  If the keytop is changed by NWA-054, the key input should be typed referring the NWP-411 keytop layout.

FILES

/dev/keyboard

SEE ALSO

chkey(S), chkeymap(S), getcountry(S)

NEWS-OSRelease 3.3

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026