Home | History | Annotate | Download | only in wscons
History log of /src/sys/dev/wscons/wsksymdef.h
RevisionDateAuthorComments
 1.78  11-Dec-2023  mlelstv Adjust next key value (it's not used anywhere).
 1.77  22-Sep-2021  nia wscons: add definitions for BÉPO, a standardized, Dvorak-style optimized
keyboard layout for French
 1.76  11-May-2021  nia wscons: add support for the Neo 2 German keyboard layout

Neo is an optimized layout for German and English, similar to
Dvorak for English. It can be used to type most Latin-based languages
and has separate layers for symbols and directional commands.
 1.75  17-Oct-2020  mlelstv branches: 1.75.6; 1.75.8;
Correct KB_NEXT value. No impact since KB_NEXT isn't used anywhere.
 1.74  29-Aug-2020  macallan provide KB_APPLE layout variant which uses Command-F* to switch console screens
mostly for consistent behaviour across *Books which may have ADB or USB
keyboards
 1.73  13-Jul-2020  nia Clarify that KB_TR is the "Q" layout - there's two standards for Turkish.
 1.72  13-Jul-2020  nia Canadian French keyboard layout for ukbd/pckbd
 1.71  13-Jul-2020  nia Add keyboard layout for Latin American Spanish to ukbd/pckbd
 1.70  12-Jul-2020  nia Add Icelandic keyboard layout to ukbd/pckbd.
 1.69  12-Jul-2020  nia Add Estonian layout as a variation of Swedish for ukbd and pckbd
 1.68  12-Jul-2020  nia Add support for the Brazilian keyboard layout to pckbd and ukbd.

This is significantly different from the European Portugese layout,
and was pieced together from Wikipedia, X11 layout files, and to
some extent with trial and error.

Thanks to lun-4 for helping test this.

PR kern/44570
 1.67  19-Feb-2018  maya branches: 1.67.10;
Add Turkish keyboard layout.

from berte in PR kern/53011.
 1.66  22-Apr-2012  khorben branches: 1.66.32;
Implemented extra keys as found on Sun Type 7 USB keyboards, and
according to the documentation mentioned above in this file.

"works here" macallan@, myself
 1.65  22-Jul-2011  christos branches: 1.65.2; 1.65.6;
PR/35473: Wigcher Spanninga: Add Dutch keyboard support to wscons
 1.64  28-Jan-2010  drochner -rename the "KS_GROUP_Ascii" key symbol category to "Plain" because
this is what it meant all the time -- it includes characters >127
-delegate translation of all key symbols >127 to the terminal emulation
layer -- formerly everything non-special was passed to the tty subsystem
directly, involving truncation to a "char", which effectively meant
some ISO-1 assumption
 1.63  06-Apr-2009  mkirby Add a Czech (QWERTY) keyboard layout, and teach wscons about latin 2 characters.

Original code from Lubomir Kundrak, adapted to current and cleaned up by me.

Fixes PR kern/16216

ok agc@ jdc@
 1.62  18-Feb-2009  snj s/portugese/portuguese/, spotted by Ari Constancio in PR misc/40202.
 1.61  21-May-2008  ghen branches: 1.61.6; 1.61.8; 1.61.12; 1.61.14; 1.61.16;
Add support for the Colemak keyboard layout variant, see http://colemak.com
 1.60  28-Apr-2008  martin branches: 1.60.2;
Remove clause 3 and 4 from TNF licenses
 1.59  09-Dec-2007  jmcneill branches: 1.59.10; 1.59.12; 1.59.14;
Merge jmcneill-pm branch.
 1.58  04-Apr-2007  mishka branches: 1.58.8; 1.58.10; 1.58.18; 1.58.20;
Revert previous commit until further investigation because it is
known as problematic. Some problems obscured are dead Del key (I
can reproduce this with wscons scroll support) and panic (seen by
<elad> only).
 1.57  02-Apr-2007  mishka Implement locking switcher for alternative layots (many languages
are based on completely different alphabet, and typesetting with
one of modifiers pressed all the time is just a PITA). See
http://mail-index.netbsd.org/tech-kern/2007/03/29/0002.html for
usage details.

While here, perform the following small cleanups:
- KS_Cmd_Scroll* execution should be explicitly interrupted with 'break'.
- Some 'human' cleanups in ksym extraction algorithm (no func. changes).
- Add a note: implemented ksym translation isn't sufficient for l10n.
 1.56  01-Apr-2006  christos branches: 1.56.12; 1.56.20; 1.56.24;
Greek console keymap from Eye of the Beholder
 1.55  11-Dec-2005  christos branches: 1.55.4; 1.55.6; 1.55.8; 1.55.10; 1.55.12;
merge ktrace-lwp.
 1.54  08-Jun-2005  martin branches: 1.54.2;
Add a key symbol for the "Power" key.
 1.53  30-Apr-2005  augustss Remember what keyboard layout is set in the mux, that way new keyboards
can be given the same layout. Fixes kern/19153.
 1.52  04-Apr-2005  martti s/Finish/Finnish/
 1.51  08-Mar-2005  dsl branches: 1.51.2;
Change the wa ythe KB_xxx and KB_ENCTAB are defined so we have all the
data for a single keyboard on one line - including the long name and
default modifiers that sysinst needs.
 1.50  02-Dec-2004  hubertf branches: 1.50.4; 1.50.6;
Try to document keymap names - this really a trip into the obscure.
XXX someone please review!
 1.49  28-May-2004  christos PR/19925: David Ferlier: Add scrolling support to wscons.
 1.48  13-May-2004  pooka Add el-cheapo finnish encoding, i.e. make the name "fi" point to
the swedish keymap, which actually gets set.

inspired by wiz
keymap name blessed by Klaus
 1.47  25-Nov-2002  fvdl branches: 1.47.6; 1.47.8;
Add 'U' to 16-bit hex constants to stop gcc 3.3 from complaining. Shouldn't
really be needed, but.. (from scw and thorpej).
 1.46  25-Oct-2002  martin Add a few symbols.
 1.45  23-Apr-2002  hannken Remove the cyrillic keysyms. This was not done the right way.
Will come back after 1.6 has branched.

Approved by: Matthias Drochner <drochner@netbsd.org>
 1.44  24-Mar-2002  uwe Sync most Cyrillic names with X11 keysym names.
 1.43  17-Mar-2002  augustss Add Cyrillic keysyms. From OpenBSD.
 1.42  17-Mar-2002  augustss Don't forget the symbolc names for the keymaps.
 1.41  17-Mar-2002  augustss Add more language map definitions.
 1.40  11-Nov-2001  martin Add polish keyboard map, from Dawid Szyma_ski <dawszy@netbsd.lubin.pl>.
 1.39  05-Dec-2000  drochner branches: 1.39.2; 1.39.4; 1.39.8;
add some missing definitions for hungarian keymap support
(It won't help much since there is no way to get characters not in
iso-1 or the function key set through the vt100/sun/dumb terminal
emulations:-(
 1.38  13-Oct-2000  mjl Revert previous since the finnish keymap is already present under
the name "sv". Note to myself: Read PRs completely before acting.
Note to Santa Claus: I want a mailing list that carries all follow
ups to PRs!
 1.37  12-Oct-2000  mjl Add finnish keymap, from Heikki Kallasjoki in PR/11186.
 1.36  01-Oct-2000  takemura - Add ioctl commands to wsdisplay which set/get some LCD status,
backlight, brightness and contrast.
- Add 9 command key symbols which make wskbd to call wsdisplay's
iocontrol.
- Add special key map variant KB_MACHDEP. This variant does not
have any real keymap but it's just a placeholder for machine dependent
maps which will be overwrite by machine dependent keyboard driver.
 1.35  06-Jul-2000  hannken Change type `kbd_t' from `u_int_16_t' to `u_int32_t'.
This eliminates bogus casts from `int *' to `u_int_16_t*'.
 1.34  19-May-2000  drochner branches: 1.34.4;
define spanish keymap
 1.33  13-May-2000  bjh21 Oops. Swedish is KB_SV.
 1.32  13-May-2000  bjh21 Add keypad-# and Swedish layout
 1.31  14-Apr-2000  tsarna Add an "iopener" keymap variant, giving us.iopener and
us.iopener.swapctrlcaps. This makes F1 ("Back") into Escape, and shifts
the other keys over by one, so F2-F12 ("Forward"-"Home") become F1-F11.
 1.30  19-Mar-2000  tsarna Make clearer. IMHO, all of this code should stop referring to Control-L
and Control-R, since those suggest ^L and ^R, not Left and Right Control.
 1.29  19-Mar-2000  tsarna Correct a comment
 1.28  05-Mar-2000  soren Add Norwegian keymap from Haavard Lygre.
 1.27  21-Dec-1999  drochner introduce a METAESC keyboard variant bit
 1.26  10-Nov-1999  drochner allow to set multiple keyboard "variants" simultanously.
Follows PR kern/8456 by Michael Eriksson <eramore@era-t.ericsson.se>,
implemented diffently.
 1.25  11-May-1999  drochner branches: 1.25.2; 1.25.4; 1.25.8;
define swedish layout and "dvorak" variant
 1.24  12-Feb-1999  drochner branches: 1.24.2; 1.24.4;
"NEXT" is a keyboard type, not a keymap variation.
 1.23  28-Jan-1999  dbj wscons based console video & keyboard support for the NeXT
from Matt DeBergalis
 1.22  23-Jan-1999  drochner add definitions for the additional modifiers on japanese keyboards
(These are not of use for wscons, but we want to give names to the keys
at least.)
 1.21  17-Jan-1999  drochner define a "close everything" keyboard command
 1.20  15-Jan-1999  drochner add definition for japanese keyboard
 1.19  14-Jan-1999  drochner add a "reset terminal emulator" command pseudo-keysym and call the
corresponding callback if one is hit
 1.18  10-Jan-1999  augustss Rename the "windows" keys and add the new keys to the keyboard maps.
 1.17  10-Jan-1999  augustss Add definitions for Pause and Print_Screen keys.
(Why were these keys missing? Or am I missing something obvious here?)
 1.16  10-Jan-1999  augustss Add definitions for left and right "Windows" keys and menu key.
 1.15  09-Jan-1999  drochner add a definition for the "swap ctl and caps" option
 1.14  06-Jan-1999  drochner add definition for british keyboard
 1.13  28-Dec-1998  hannken Prepare for wsconsctrl:
- clean up keycode defines.
- allow easy parse of wsksymdef.h.
- add misssing KB_IT entry.
- set layout to KB_USER after ioctl WSKBDIO_SETMAP.
 1.12  03-Oct-1998  drochner add definition for french keyboard
 1.11  17-Sep-1998  drochner Add option bit which covers the delta between LK201 and LK401.
 1.10  01-Sep-1998  drochner add definition for italian keyboard
 1.9  15-Jul-1998  drochner rename "LK" -> "declk" for consistency
 1.8  14-Jul-1998  drochner support keyboards with PC interface and DEC layout (LK461)
 1.7  16-Jun-1998  drochner add missing keys for vt100
 1.6  20-Apr-1998  hannken Undo change from drochner (Rev 1.4 of wsksymdef.h) and fix PR #5298 and #5299.
 1.5  18-Apr-1998  drochner Add danish keymap.
From Soren S. Jorvang (PR kern/5312).
 1.4  16-Apr-1998  drochner Don't use KS_GROUP_xxx values which have set something in the lower
8 bits. This allows to OR them with keycodes.
This is probably a workaround for namespace confusion happening else-
where (in wskbdutil.c:ksym_upcase() perhaps?), but it helps without
too much digging into the details.
 1.3  07-Apr-1998  hannken Fix typo.
 1.2  07-Apr-1998  hannken Oops. Forgot RCS ident and copyright.
 1.1  07-Apr-1998  hannken Initial import of MI keyboard translation for dev/wscons.
 1.24.4.1  21-Jun-1999  thorpej Sync w/ -current.
 1.24.2.1  04-Dec-1999  he Pull up revision 1.25 (requested by drochner):
Add Swedish and Dvorak keyboard maps for PC keyboards.
 1.25.8.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.25.4.1  15-Nov-1999  fvdl Sync with -current
 1.25.2.2  08-Dec-2000  bouyer Sync with HEAD.
 1.25.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.34.4.1  07-Jul-2000  hannken Pull up revision 1.35:
- kbd_t from u_int_16_t to u_int_32_t.
 1.39.8.1  12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.39.4.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.39.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.39.2.5  11-Dec-2002  thorpej Sync with HEAD.
 1.39.2.4  11-Nov-2002  nathanw Catch up to -current
 1.39.2.3  20-Jun-2002  nathanw Catch up to -current.
 1.39.2.2  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.39.2.1  14-Nov-2001  nathanw Catch up to -current.
 1.47.8.1  07-Jun-2004  tron branches: 1.47.8.1.2;
Pull up revision 1.49 (requested by recht in ticket #451):
PR/19925: David Ferlier: Add scrolling support to wscons.
 1.47.8.1.2.4  09-Oct-2005  tron Pull up following revision(s) (requested by riz in ticket #5919):
sys/dev/wscons/wsksymdef.h: revision 1.52
s/Finish/Finnish/
 1.47.8.1.2.3  24-Jul-2005  snj Pull up revision 1.51 (requested by riz in ticket #5524):
Change the wa ythe KB_xxx and KB_ENCTAB are defined so we have all the
data for a single keyboard on one line - including the long name and
default modifiers that sysinst needs.
 1.47.8.1.2.2  24-Jul-2005  snj Pull up revision 1.50 (requested by riz in ticket #5524):
Try to document keymap names - this really a trip into the obscure.
XXX someone please review!
 1.47.8.1.2.1  24-Jul-2005  snj Pull up revision 1.48 (requested by riz in ticket #5524):
Add el-cheapo finnish encoding, i.e. make the name "fi" point to
the swedish keymap, which actually gets set.

inspired by wiz
keymap name blessed by Klaus
 1.47.6.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.47.6.5  08-Mar-2005  skrll Sync with HEAD.
 1.47.6.4  18-Dec-2004  skrll Sync with HEAD.
 1.47.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.47.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.47.6.1  03-Aug-2004  skrll Sync with HEAD
 1.50.6.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.50.4.1  29-Apr-2005  kent sync with -current
 1.51.2.1  04-Apr-2005  tron Pull up revision 1.52 (requested by martti in ticket #104):
s/Finish/Finnish/
 1.54.2.2  21-Jan-2008  yamt sync with head
 1.54.2.1  21-Jun-2006  yamt sync with head.
 1.55.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.55.10.1  19-Apr-2006  elad sync with head.
 1.55.8.1  11-Apr-2006  yamt sync with head
 1.55.6.1  22-Apr-2006  simonb Sync with head.
 1.55.4.1  09-Sep-2006  rpaulo sync with head
 1.56.24.1  04-Sep-2008  skrll Sync with netbsd-4.
 1.56.20.1  11-Jul-2007  mjf Sync with head.
 1.56.12.1  08-Jun-2008  bouyer Pull up following revision(s) (requested by ghen in ticket #1155):
sys/dev/wscons/wsksymdef.h: revision 1.61
x11/bin/xkbcomp/symbols/pc/Makefile: revision 1.5
sys/dev/sun/wskbdmap_sun.c: revision 1.15
x11/bin/xkbcomp/symbols/Makefile: revision 1.6
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.15
share/man/man4/pckbd.4: revision 1.15
distrib/sets/lists/xbase/mi: revision 1.57
sys/dev/usb/ukbdmap.c: revision 1.20
distrib/sets/lists/xbase4/mi: revision 1.21
xsrc/xfree/xc/programs/xkbcomp/symbols/colemak: revision 1.1
xsrc/xfree/xc/programs/xkbcomp/symbols/pc/colemak: revision 1.1
Add support for the Colemak keyboard layout variant, see http://colemak.com
 1.58.20.1  11-Dec-2007  yamt sync with head.
 1.58.18.1  26-Dec-2007  ad Sync with head.
 1.58.10.1  09-Jan-2008  matt sync with HEAD
 1.58.8.1  03-Aug-2007  jmcneill Pull in power management changes from private branch.
 1.59.14.3  11-Mar-2010  yamt sync with head
 1.59.14.2  04-May-2009  yamt sync with head.
 1.59.14.1  16-May-2008  yamt sync with head.
 1.59.12.2  04-Jun-2008  yamt sync with head
 1.59.12.1  18-May-2008  yamt sync with head.
 1.59.10.1  02-Jun-2008  mjf Sync with HEAD.
 1.60.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.61.16.1  21-Apr-2010  matt sync to netbsd-5
 1.61.14.1  21-Mar-2012  jdc Pull up revisions (requested by bouyer in ticket #1727):
src/sys/dev/wscons/wsemul_vt100.c 1.31
src/sys/dev/wscons/wsemul_vt100_chars.c 1.12
src/sys/dev/wscons/wsksymdef.h 1.62

s/portugese/portuguese/, spotted by Ari Constancio in PR misc/40202.
 1.61.12.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.61.8.2  21-Mar-2012  jdc Pull up revisions (requested by bouyer in ticket #1727):
src/sys/dev/wscons/wsemul_vt100.c 1.31
src/sys/dev/wscons/wsemul_vt100_chars.c 1.12
src/sys/dev/wscons/wsksymdef.h 1.62

s/portugese/portuguese/, spotted by Ari Constancio in PR misc/40202.
 1.61.8.1  01-Nov-2009  bouyer branches: 1.61.8.1.2;
Apply patch, requested by ahoka in ticket #1111:
sys/dev/pckbport/wskbdmap_mfii.c patch
sys/dev/wscons/wsksymdef.h patch
sys/dev/wscons/wskbdutil.c patch
Add hungarian keyboard layout.
 1.61.8.1.2.1  21-Mar-2012  jdc Pull up revisions (requested by bouyer in ticket #1727):
src/sys/dev/wscons/wsemul_vt100.c 1.31
src/sys/dev/wscons/wsemul_vt100_chars.c 1.12
src/sys/dev/wscons/wsksymdef.h 1.62

s/portugese/portuguese/, spotted by Ari Constancio in PR misc/40202.
 1.61.6.2  28-Apr-2009  skrll Sync with HEAD.
 1.61.6.1  03-Mar-2009  skrll Sync with HEAD.
 1.65.6.1  29-Apr-2012  mrg sync to latest -current.
 1.65.2.1  23-May-2012  yamt sync with head.
 1.66.32.1  11-Apr-2018  martin Pull up following revision(s) (requested by maya in ticket #735):

sys/dev/wscons/wsksymdef.h: revision 1.67
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.26

Add Turkish keyboard layout.

from berte in PR kern/53011.
 1.67.10.1  13-Jul-2020  martin Pull up following revision(s) (requested by nia in ticket #1002):

sys/dev/wscons/wsksymdef.h: revision 1.68
sys/dev/wscons/wsksymdef.h: revision 1.69
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.28
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.29
sys/dev/hid/hidkbdmap.c: revision 1.10
share/man/man4/pckbd.4: revision 1.23
share/man/man4/wskbd.4: revision 1.18
share/man/man4/wskbd.4: revision 1.19
share/man/man4/pckbd.4: revision 1.25
sys/dev/wscons/wsksymdef.h: revision 1.70
sys/dev/wscons/wsksymdef.h: revision 1.71
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.30
sys/dev/wscons/wsksymdef.h: revision 1.72
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.31
sys/dev/wscons/wsksymdef.h: revision 1.73
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.32
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.33
sys/dev/hid/hidkbdmap.c: revision 1.4
sbin/wsconsctl/wsconsctl.8: revision 1.30
sys/dev/hid/hidkbdmap.c: revision 1.5
etc/wscons.conf: revision 1.20
sys/dev/hid/hidkbdmap.c: revision 1.6
etc/wscons.conf: revision 1.21
sys/dev/hid/hidkbdmap.c: revision 1.7
sys/dev/hid/hidkbdmap.c: revision 1.8
sys/dev/hid/hidkbdmap.c: revision 1.9

Add support for the Brazilian keyboard layout to pckbd and ukbd.

This is significantly different from the European Portugese layout,
and was pieced together from Wikipedia, X11 layout files, and to
some extent with trial and error.

Thanks to lun-4 for helping test this.

PR kern/44570
Update lists of keyboard layouts to add Turkish and Brazilian

Bring br.nodead closer to X11

Add Estonian layout as a variation of Swedish for ukbd and pckbd

Add KB_TR for uhid keyboards (it was PS/2 only, this seems wrong)

Add Icelandic keyboard layout to ukbd/pckbd.

Add keyboard layout for Latin American Spanish to ukbd/pckbd

Canadian French keyboard layout for ukbd/pckbd

Clarify that KB_TR is the "Q" layout - there's two standards for Turkish.

Move description of keyboard layouts to wskbd.4, add newer layouts

Previously, the best reference was pckbd.4. This does not make much
sense to read if you are on, say, an evbarm device with only USB.
wsconsctl.8 contained a vaguer description of supported language names,
which isn't very useful because you can't pass full language names
to the command. Point readers to wskbd.4 instead.

Note in the wskbd.4 page that while all layouts are generally supported
by pckbd(4) and ukbd(4), older keyboard interfaces might only support
a subset.

wskbd.4: Add KB_LA

Point readers at wskbd.4
 1.75.8.1  31-May-2021  cjep sync with head
 1.75.6.1  13-May-2021  thorpej Sync with HEAD.

RSS XML Feed