.\" @(#) kbd_mode.1 9.3 88/01/19 .TH KBD_MODE 1 "26 October 1987" .IX kbd_mode#(1) "" "\fLkbd_mode\fP(1) \(em change keyboard translation mode" .SH NAME kbd_mode \- change the keyboard translation mode .SH SYNOPSIS .B kbd_mode .if n .br .BR \-a \||\|\c .BR \-n \||\|\c .BR \-e \||\|\c .BR \-u .SH DESCRIPTION .IX "keyboard input" reset .LP .I kbd_mode sets the translation mode of the console's keyboard (/dev/kbd) to one of the four values defined for KIOCTRANS in .IR kb (4S). This is useful when a program which resets the translation mode crashes; for example, NeWS (when run from SunView) can sometimes leave SunView reading untranslated events. .IX SunView "keyboard state if NeWS crashes" "" "keyboard state if NeWS crashes" .SH OPTIONS .TP 16n .B \-a \s-2ASCII\s0: the keyboard will generate simple \s-2ASCII\s0 characters .TP .B \-n none: the keyboard will generate unencoded bytes \- a distinct value for up and down on each switch on the keyboard .TP .B \-e events: the keyboard will generate SunWindows input events with \s-2ASCII\s0 characters in the \fIvalue\fP field .TP .B \-u unencoded: the keyboard will generate SunWindows input events with unencoded bytes in the \fIvalue\fP field (this is the mode \*(Sd currently uses). .SH FILES .nf .ft I /dev/kbd $NEWSHOME/bin/kbd_mode .fi .SH "SEE ALSO" kb(4S)